0

enter image description here

Hello,

How can I move the button "Apply" in the right of that bottom panel without "absolute layout?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Andrei
  • 11
  • 3

1 Answers1

3

Specify FlowLayout.RIGHT for the panel holding the button, as shown here and here:

JPanel p = new JPanel(new FlowLayout(FlowLayout.RIGHT));

Then add p to the SOUTH or PAGE_END area of a panel having BorderLayout.

image

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045