swing中控件布局的问题 你可以先分成GridLayout,在每行里再用FlowLayout,如果你觉得还不行那就直接用GridBagLayout。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 能不能给个例子?我对swing不熟 JPanel outer = new JPanel();outer.setLayout(new BoxLayout(outer, BoxLayout.Y_AXIS));FlowLayout fl = new FlowLayout(FlowLayout.LEFT);JPanel inner1 = new JPanel();inner1.add(....); .....outer.add(inner1);JPanel inner2 = new JPanel();inner2.add(...); .....outer.add(inner2); 初学JAVA,请问这段程序为什么会提示损失精度? 关于多态,求解!谢谢,来自java解惑 怎么让国内的ip无法访问我的网站 一个关于嵌套interface的问题 java的类与方法问题 请问怎莫在jbuilder9中布局???? javac 出现这个错误 为什么?? 如何使有Icon按钮的文字显示在Icon下方? 请问大侠学java要有c语言基础吗? 不用swing,如何手工代码生成工具条和菜单条? 这个问题发何解决 请问如何读取本网段内其它机器上的共享文件列表呢??
我对swing不熟
outer.setLayout(new BoxLayout(outer, BoxLayout.Y_AXIS));
FlowLayout fl = new FlowLayout(FlowLayout.LEFT);
JPanel inner1 = new JPanel();
inner1.add(....); .....
outer.add(inner1);
JPanel inner2 = new JPanel();
inner2.add(...); .....
outer.add(inner2);