Reputation: 1606
I tried to use
dialog.setLayout(BoxLayout.Y_AXIS);
but it doesn't work.
How can I set the layout?
Upvotes: 0
Views: 376
Reputation: 2512
Use this:
dialog.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
Upvotes: 3