I've been following the tutorials on JOptionPane from
here .and I've set up an OptionPane with "OK"/ "Canel" type options. I would like to enable/disable the "OK" button according to certain criteria. If this were a 'simple' JButton, I could use...
button.isEnabled(true)
...but I can't find a way to 'get' the option buttons from the JOptionPane.
How do I do it?