一个java application程序,一个主窗口点击按钮后会弹出子窗口,如何在不关闭主窗口的情况下关闭子窗口!
附上关键代码:classMyWindowListenerextendsWindowAdapter{///关闭子窗口监听器;MycreateFramem=newMycrea...
附上关键代码:
class MyWindowListener extends WindowAdapter{ ///关闭子窗口监听器;
MycreateFrame m = new MycreateFrame();
public MyWindowListener(MycreateFrame m){this.m = m;}
public void windowClosing(WindowEvent e){
m.setVisible(false);}
} 展开
class MyWindowListener extends WindowAdapter{ ///关闭子窗口监听器;
MycreateFrame m = new MycreateFrame();
public MyWindowListener(MycreateFrame m){this.m = m;}
public void windowClosing(WindowEvent e){
m.setVisible(false);}
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询