Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试着用
dialog.setLayout(BoxLayout.Y_AXIS);
但它不起作用。
如何设置布局?
用这个:
dialog.setLayout(new BoxLayout(BoxLayout.Y_AXIS));