How set layout for Dialog?

399 Views Asked by At

I tried to use

dialog.setLayout(BoxLayout.Y_AXIS);

but it doesn't work.

How can I set the layout?

1

There are 1 best solutions below

0
On BEST ANSWER

Use this:

 dialog.setLayout(new BoxLayout(BoxLayout.Y_AXIS));