Pri pridávaní komponentov vieš nastaviť "vrstvu" pomocou frame.add(component, vrstva);
public Component add(Component comp, int index)
Adds the specified component to this container at the given position. This is a convenience method for Container.addImpl.
This method changes layout-related information, and therefore, invalidates the component hierarchy. If the container has already been displayed, the hierarchy must be validated thereafter in order to display the added component.
Parameters:
comp - the component to be added
index - the position at which to insert the component, or -1 to append the component to the end