把splitPane.setDividerLocation(0.8);这句放到f.show(true);之后
解决方案 »
- 一个关于java的hashCode方法的问题,请高手指点,谢谢
- eclipse的运行问题
- ******高手们救命啊,帮忙做个sockets题目(一经采用另送200分)******
- aplet
- 昨天去图书馆借了一本书,大家说这本书好吗???
- 在linux系统上,如何设置每隔一定时间执行一个java程序?
- 哪位可提供一个Applet的画图范例?
- #####超强的资料管理、报刊下载软件,大家有兴趣下载用用##########
- 谁用过 CCM ? 碰到过这种错误吗?
- 又来200分了!请问哪为有jb6与vss,cvs配置、集成、使用方面的资料!越详细越好!急!
- 我哭,我哭.配置jdk问题
- 处理两个ArrayList?
splitPane.setDividerLocation(0.8); 改为 splitPane.setDividerLocation(200);试一下
它的参数是整型,in pixels。setDividerLocation
public void setDividerLocation(int location)Sets the location of the divider. This is passed off to the look and feel implementation, and then listeners are notified. A value less than 0 implies the divider should be reset to a value that attempts to honor the preferred size of the left/top component. After notifying the listeners, the last divider location is updated, via setLastDividerLocation. Parameters:
location - an int specifying a UI-specific value (typically a pixel count)