我想在 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 中做就没问题。这是为什么? 
谢谢! 

解决方案 »

  1.   

    啥意思?你是想让中间的divider上面有自己的控件吗?
      

  2.   

    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.