-1

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.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
AlanRubinoff
  • 385
  • 9
  • 30

2 Answers2

1

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 ;)

1

For this you might use a single column GridLayout. It will divide the space equally between components.

See also:

Community
  • 1
  • 1
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433