setMaximumRowCount(int count)when your list is larger than count, it may use a scrollbar.Try a small list instead?
解决方案 »
- 问下关于double型 除数为0时 的问题
- 100分! JDK中的socketRead0(。。。)方法在哪个DLL中定义的?
- 对执行结果不理解class [I 这个是什么东西?不信你们自己可以试试,很短的代码!
- 关于JBuilder 9 注册的问题(谢谢各位了!!新年好!!!)
- 在Java包中的两个类(放在两个文件中)如何互相引用?
- 请各位高手帮帮忙,一个同步的小问题
- 请你推荐: 摄影技术方面的网站
- ant在win2000中配置问题
- 一个汤母猫的问题
- 为什么实际测试LinkedList各项性能都要弱于ArrayList?
- 我用了JBuilder 6的注册机,但为什么还是注册不起?
- 加密解密,脑袋都搞大了,大伙帮忙看看!
JComboBox cboType = new JComboBox();cboType.addItem("type1");
cboType.addItem("type2");
试着setMaximumRowCount(0),不行
String[] items = {"a", "b", "c"};
JComboBox cboType = new JComboBox(items);