Posted by:shsen
Posted on:2003-05-16 16:26
不太清楚怎么写啊,看看我的代码:
public class DealInternalFrame extends JInternalFrame {
/**
* 构造函数
* @param aTitle 窗口标题
*/
public DealInternalFrame (String aTitle){
super(aTitle,
true, // resizable
true, // closable
true, // maximizable
true); // iconifiable
}
/**
* 构造函数
* @param aTitle 窗口标题
* @param aId 窗口的唯一标识
*/
public DealInternalFrame (String aTitle, int aId){
this(aTitle);
setId (aId);
}
public int getId (){
return id;
}
public void setId (int aId){
id = aId;
}
private int id = 0; //窗口的唯一标识
}
public class LCApplyD1 extends DealInternalFrame
{
JScrollPane jScrollPane;
static PaneApply1 pane = null;
public LCApplyD1()
{
//super("基本数据(1)",11);
super("基本数据",11);
setSize(750,550);
JComponent c = (JComponent) this.getContentPane();
c.setLayout(new BorderLayout());
jScrollPane = new JScrollPane();
pane = new PaneApply1();
jScrollPane.getViewport().add(pane);
c.add(jScrollPane,BorderLayout.CENTER);
//如何在这里添加关闭事件处理
}
}