سؤال

I tried to use

dialog.setLayout(BoxLayout.Y_AXIS);

but it doesn't work.

How can I set the layout?

هل كانت مفيدة؟

المحلول

Use this:

 dialog.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top