I am developing an application which consists of a JPanel
to which I am adding different types of components either JLabel
, JButton
.
What I want to know is if there is a way to move them backwards or forwards, move forwards or backwards, or put one JLabel
behind all the components that exist.
Finally I managed to position them
JLabel
one on top of the other by changing theJPane
to aJLayeredPane
and using the method:nombreJlayered.add(nombreDeEtiqueta, new Integer(1));