java 构造器与jbuilder 要能适应各种情况的IDE工具是不可能有的,你自己写的基类JB的设计器是无法识别的。你的程序没什么错误,别担心。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //父类public class WorkInternalFrame extends JInternalFrame { //设置属性 private JPanel panel = new JPanel(new GridLayout(0,1));//FlowLayout());// protected JPanel bottom = null; protected JPanel tree = null; protected JSplitPane split = new JSplitPane(); protected Font font = new Font("china",Font.PLAIN,14); protected Color color = Color.blue; //带参数的构造方法 public WorkInternalFrame(String title) { super( title, true, true, true, true ); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //初始化窗口 private void jbInit() throws Exception { getContentPane().setLayout(new BorderLayout()); this.getContentPane().add(panel, BorderLayout.NORTH); setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE ); }}//他的子类是public class LayoutInternalFrame extends WorkInternalFrame { public LayoutInternalFrame(){ super("工作规划"); ToolBarFactory factory = (ToolBarFactory)LayoutToolBarFactory.newInstance(); addToolBars(factory.getToolBars()); split = new JSplitPane(1,new JLabel("1"),new JLabel("2")); split.setDividerLocation(200); getContentPane().add(split,BorderLayout.CENTER); // add listener for InternalFrame events addInternalFrameListener( new WorkInternalFrameListener() ); }} (200分)HIBERNATE 问题,高手进 高手帮帮忙 先谢谢了 看不懂(*^__^*) 嘻嘻…… ArrayList值覆盖问题-在线求解答 java 中如何判断当前的文件是否正在被别人使用中 如何让Java程序开机时自己启动? 请教一个关于引用自定义包的问题 如何将文件和指定的图标结合? 请问applet怎么能与所在的页面进行通讯 即从页面中取得变量和把返回值返回给页面? 这一贴,我只谈Tomcat数据连结池!(希望各位参观,并能有所收获) 怎样才能用java实现结构体数组,最好有代码!谢了!送上100分!!!! 关于配置文件问题,请高人帮忙。谢谢! 问几个方法(函数)。
public class WorkInternalFrame extends JInternalFrame {
//设置属性
private JPanel panel = new JPanel(new GridLayout(0,1));//FlowLayout());//
protected JPanel bottom = null;
protected JPanel tree = null;
protected JSplitPane split = new JSplitPane();
protected Font font = new Font("china",Font.PLAIN,14);
protected Color color = Color.blue; //带参数的构造方法
public WorkInternalFrame(String title) {
super( title, true, true, true, true );
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
//初始化窗口
private void jbInit() throws Exception {
getContentPane().setLayout(new BorderLayout());
this.getContentPane().add(panel, BorderLayout.NORTH);
setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE );
}
}
//他的子类是
public class LayoutInternalFrame extends WorkInternalFrame {
public LayoutInternalFrame(){
super("工作规划");
ToolBarFactory factory = (ToolBarFactory)LayoutToolBarFactory.newInstance();
addToolBars(factory.getToolBars());
split = new JSplitPane(1,new JLabel("1"),new JLabel("2"));
split.setDividerLocation(200);
getContentPane().add(split,BorderLayout.CENTER);
// add listener for InternalFrame events
addInternalFrameListener(
new WorkInternalFrameListener() );
}
}