1

I want to arrange the 4 panels so that each panel appears right below the panel above. Currently, the terminatePanel appears at the side of aptPanel but I want it to be below it. Using border layout doesn't seem to work or I'm just doing it wrong. Are there other ways to do it?

add(panel, BorderLayout.NORTH);
add(aptPanel, BorderLayout.CENTER);
add(terminatePanel, BorderLayout.AFTER_LINE_ENDS);
add(endPanel, BorderLayout.SOUTH);

Here is what it looks like:

Here is what it looks like

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Kreylanc
  • 11
  • 2

1 Answers1

0

You can use BoxLayout or FlowLayout with to make what you want to happen.

See here.

Maifee Ul Asad
  • 3,992
  • 6
  • 38
  • 86