I create a JFrame
and I want two panels one above and one below dividing the JFrame
in two.
InicioAdministrador is the JFrame
InicioPartida is the JPanel
I created everything with visual editor.
I create a JFrame
and I want two panels one above and one below dividing the JFrame
in two.
InicioAdministrador is the JFrame
InicioPartida is the JPanel
I created everything with visual editor.
You will need one of the many possible choices of Layout managers. I could explain it here, but I think http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html will do a better job at it ;)
For this you might use a single column GridLayout
. It will divide the space equally between components.
See also: