- try {
- int reply = JOptionPane.showInternalConfirmDialog(Desktop.desktop, // component,
- dialogText,
- dialogTitle, (allowCancel) ? JOptionPane.YES_NO_CANCEL_OPTION :
- JOptionPane.YES_NO_OPTION,
- JOptionPane.QUESTION_MESSAGE);
- jalview.bin.Cache.log.debug("Got response : "+reply);
- if (reply == JOptionPane.YES_OPTION)
+ try
+ {
+ int reply = JvOptionPane.showConfirmDialog(Desktop.desktop, // component,
+ dialogText, dialogTitle,
+ (allowCancel) ? JvOptionPane.YES_NO_CANCEL_OPTION
+ : JvOptionPane.YES_NO_OPTION,
+ JvOptionPane.QUESTION_MESSAGE);
+
+ // and finish parsing the result
+ Console.debug("Got response : " + reply);
+ if (reply == JvOptionPane.YES_OPTION)
+ {
+ Cache.setProperty(property, "true");
+ }
+ else if (reply == JvOptionPane.NO_OPTION)