用户点击"确定"按钮,主程序无变化,当前对话框关闭。
setVisible(false);
一般要自定义对话框,继承JDialog类 可以有几种方法: 1.this.dispose(); 2.this.setVisible(false);