我有showdialog
JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.");
单击“确定”按钮后如何获取事件?
答案 0 :(得分:3)
代码将被阻止,直到您点击
System.out.println("before click");
JOptionPane.showMessageDialog(null, "Eggs are not supposed to be green.");
System.out.println("after click - do your code here");