read the borderlayout doc. you should specify the location of components in jpltop when you add them.
把所有布局改为null 自己想加到哪个位置就哪个位置
可以为JPanel设置setPreferredSize()这个方法, jpLTop.setPreferredSize(new Dimension(300,120))这样。 调整不同的数值,直到达到你的要求。一般不能全部显示就是JPanel执行默认的大小了。在JPanel上面加JPanel,是个比较通用的方法。另外,在布局方面有很多类可以用,在JAVA TUTORIAL有个HOW TO USE LAYOUT写的比较详细,什么时候用什么layout。可以参考。
you should specify the location of components in jpltop when you add them.
jpLTop.setPreferredSize(new Dimension(300,120))这样。
调整不同的数值,直到达到你的要求。一般不能全部显示就是JPanel执行默认的大小了。在JPanel上面加JPanel,是个比较通用的方法。另外,在布局方面有很多类可以用,在JAVA TUTORIAL有个HOW TO USE LAYOUT写的比较详细,什么时候用什么layout。可以参考。
用setPreferredSize(new Dimension(X,X));