protected JSplitPane sp;  
sp = new JSplitPane();
 theMainPanel.add(sp,BorderLayout.NORTH);显示的时候sp出现两个按钮    一个是 左键   一个是 右键我怎么给替换成我选项卡里面的标签

解决方案 »

  1.   

     void setRightComponent(Component comp) 
              将组件设置到分隔条的右边(或者下面)。
     void setTopComponent(Component comp) 
              将组件设置到分隔条的上面或者左边。
     void setLeftComponent(Component comp) 
              将组件设置到分隔条的左边(或上面)。
     void setBottomComponent(Component comp) 
              将组件设置到分隔条的下面或者右边。JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent) 
              创建一个具有指定方向和不连续重绘的指定组件的新 JSplitPane。
      

  2.   

    我现在想把选项卡里面的标签给单拿出来在里面显示但是代码里面是这么写的
    ALMApplication.setDebugMode(theDebugMode);        ALMApplication.addADKPlugin(new CoreADKPlugin());
            ALMApplication.addADKPlugin(new ReportPlugin());
            ALMApplication.addADKPlugin(new ConsolidationPlugin());
            ALMApplication.addADKPlugin(new UserTaskPlugin());
            ALMApplication.addADKPlugin(new DataSpecificationPlugin());
            ALMApplication.addADKPlugin(new UserPlugin());/
    我应该这么引用进来呢?
      

  3.   

    往sp里面加JTabbedPane。加上内容之后它就不显示按钮了
      

  4.   

    谢谢各位了 我明确一下我的意识:  我有一个面板   我想往里面添加一些东西  可是这些东西是调用的一些方法 
    Jpane.add方法怎么添加类里面的一些方法~
    比如添加下面这段代码
    ALMApplication.setDebugMode(theDebugMode);        ALMApplication.addADKPlugin(new CoreADKPlugin());
            ALMApplication.addADKPlugin(new ReportPlugin());
            ALMApplication.addADKPlugin(new ConsolidationPlugin());
            ALMApplication.addADKPlugin(new UserTaskPlugin());
            ALMApplication.addADKPlugin(new DataSpecificationPlugin());
            ALMApplication.addADKPlugin(new UserPlugin());/