문제

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