Search code examples
java-melwuitlwuit-formlwuit-dialog

How set layout for Dialog?


I tried to use

dialog.setLayout(BoxLayout.Y_AXIS);

but it doesn't work.

How can I set the layout?


Solution

  • Use this:

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