I would do something like this:
if (!(option == JOptionPane.YES_OPTION))
stop = true;
I have no idea what the values are for the constants, so always better to use the constant name rather than a value like '1'.
Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51