Panel mainpanel=new Panel();
Panel topPanel=new Panel();
topPanel.setLayout(new GridLayout(1,1));
mainpanel.add(topPanel);
Panel scrollPanel=new Panel();
scrollPanel.setLayout(new GridLayout(3,1));
mainpanel.add(scrollPanel);
Panel bottomPanel=new Panel();
bottomPanel.setLayout(new GridLayout(3,1));
mainpanel.add(bottomPanel);
Panel topPanel=new Panel();
topPanel.setLayout(new GridLayout(1,1));
mainpanel.add(topPanel);
Panel scrollPanel=new Panel();
scrollPanel.setLayout(new GridLayout(3,1));
mainpanel.add(scrollPanel);
Panel bottomPanel=new Panel();
bottomPanel.setLayout(new GridLayout(3,1));
mainpanel.add(bottomPanel);
解决方案 »
- cronExpression 表达式 每天早上3点执行
- 难题,高手进来解决一下证明你的实力
- 多线程的好处和坏处在哪里?
- 新手问题1
- 请问如何能在一个应用程序调用另一个exe文件,在被调用的exe文件结束后捕捉到exe结束的信息?
- switch case里的case能够case 1,2,3吗?就是把多个条件放到一个case里
- (菜的不能再菜了)this的迷惑
- Java 编程规范的问题, 高质量代码的困扰~ 请高手或有相关方面经验的大牛看看
- 关于jni调用C++编写的dll问题,万分紧急
- 请问谁知道jrun server && studio 正式版的下载地址
- javaMail的生效问题~Help
- JAVA里有没有像VB中那样的DoEvents语句来实现不让系统占用太多CPU资源。
JBuilder is a good layout tool,You can use.
qingtingying(ting)'s is good
建议可采用boxlayout来做尝试。
gbc.gridy = y;
gbc.gridwidth = w;
gbc.gridheight = h;参数设定有问题! GridBagConstraints 还是非常很好的,能精确的控制界面
不知道你的所说的布局的确切意义,具体说说,然后再试试看(把上面我说的参数重置!)
其实还有两个参数fill和anchor
你在描述一下你的布局,我可以帮你试试看!