How set layout for Dialog?

387 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 answers

0
frayab On BEST ANSWER

Use this:

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