开发者

java JOptionPane skip pressing OK button

开发者 https://www.devze.com 2023-03-11 18:12 出处:网络
Hi i have something like this JOptionPane.showMessageDialog(null, Config.CHECK_INTERNET_CONNECTION); System.out.print开发者_StackOverflow中文版ln(\"go\");

Hi i have something like this

JOptionPane.showMessageDialog(null, Config.CHECK_INTERNET_CONNECTION);
System.out.print开发者_StackOverflow中文版ln("go");
// HERE I CHECK MY INTERNET CONNECTION

aftter Dialog window popup application has to wait with printing go till i press OK button, is there chance to skip it? So that sign go will print after window popup?


You have to use modeless JDialog. See The New Modality API in Java SE 6.


No, that's the very nature of an option pane, to halt the execution until got an answer from the user.

0

精彩评论

暂无评论...
验证码 换一张
取 消