0

I tried to use

dialog.setLayout(BoxLayout.Y_AXIS);

but it doesn't work.

How can I set the layout?

Jon Egerton
  • 40,401
  • 11
  • 97
  • 129
Tim
  • 1,606
  • 2
  • 20
  • 32

1 Answers1

3

Use this:

 dialog.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
frayab
  • 2,512
  • 20
  • 25