Tim
Tim

Reputation: 1606

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?

Upvotes: 0

Views: 376

Answers (1)

frayab
frayab

Reputation: 2512

Use this:

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

Upvotes: 3

Related Questions