在后来靠点击打开的窗口代码里改一个属性:setDefaultCloseOperation
默认是:setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
改成:setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
在后来靠点击打开的窗口代码里改一个属性:setDefaultCloseOperation
默认是:setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
改成:setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);