¿Cómo puedo agregar un oyente en el botón OK de JoptionPane?
int res = JOptionPane.showOptionDialog(null, "Hello", "Test", JOptionPane.DEFAULT_OPTION,
JOptionPane.INFORMATION_MESSAGE, null, null, null);
System.out.println(res);
Mappy Show