Topic: 关于图形界面设计的问题

  Print this page

1.关于图形界面设计的问题 Copy to clipboard
Posted by: elminsterjimmy
Posted on: 2006-08-04 00:42

我现在想设计一个带滚动条的check box的界面,就是一个check box一行,换行然后再一个check box,在达到frame最下端的时有scroll bar。但jvm的check box是横向显示的,还是这个scroll bar能否用jscrollpanel?

2.Re:关于图形界面设计的问题 [Re: elminsterjimmy] Copy to clipboard
Posted by: Max21cn
Posted on: 2006-08-04 11:12

先是一个jscrollpanel,在上面放一个jPanel,jPanel的布局是BoxLayout的Y轴,然后上面放jCheckBox就可以了

3.Re:关于图形界面设计的问题 [Re: elminsterjimmy] Copy to clipboard
Posted by: elminsterjimmy
Posted on: 2006-08-04 15:10

请问如何在jscrollpanel上放一个jpanel呢?谢谢

4.Re:关于图形界面设计的问题 [Re: elminsterjimmy] Copy to clipboard
Posted by: Max21cn
Posted on: 2006-08-05 15:41

jScrollPane1.setViewportView(jPanel1);

5.Re:关于图形界面设计的问题 [Re: elminsterjimmy] Copy to clipboard
Posted by: Max21cn
Posted on: 2006-08-05 15:42

jScrollPane1.setViewportView(jPanel1);

6.Re:关于图形界面设计的问题 [Re: elminsterjimmy] Copy to clipboard
Posted by: elminsterjimmy
Posted on: 2006-08-05 16:29

谢谢


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923