我想在 JSplitPane 的一部分 有一个 JPanel at the BorderLayout.North, a class extends JPanel at the BorderLayout.Center and another JPanel at the BorderLayout.South. The extends class is for drawing. 现在中间的那个class 没变化。 我知道如果在一个JFrame 中做就没问题。这是为什么? 谢谢!
Thanks,In the first case, I use a borderlayout manager in a JFrame. I have one JLabel in north, one JPanel extended in center for painting and another JLable in south. Everything is as expected.In another case, I put a JSplitPane in a JFrame. one half is for trigerring event and the other is for handling the event (painting). I can get the painting shown now.My problem is when I change the size of the window, the graph will disapper and I have to trigger the event again to see it. But in the first case the displayed graph will change its size with window size.What I want is to let it have the same display as in the first case.Hope it is not confusing this time Thanks very much.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货