Answers for "How can I add a listener on the ok button of JOptionPane"

0

How can I add a listener on the ok button of JOptionPane

int res = JOptionPane.showOptionDialog(null, "Hello", "Test", JOptionPane.DEFAULT_OPTION,
        JOptionPane.INFORMATION_MESSAGE, null, null, null);

System.out.println(res);
Posted by: Guest on May-06-2022

Code answers related to "How can I add a listener on the ok button of JOptionPane"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language