Question

I tried to use

dialog.setLayout(BoxLayout.Y_AXIS);

but it doesn't work.

How can I set the layout?

Was it helpful?

Solution

Use this:

 dialog.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top