Changeset 1658 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2009-06-10T16:16:01+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/DontShowAgainInfo.java
r1169 r1658 17 17 18 18 public static boolean show(String prefKey, String msg) { 19 return show(prefKey, new JLabel(msg), true, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION);19 return show(prefKey, new JLabel(msg), false, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION); 20 20 } 21 21 … … 25 25 26 26 public static boolean show(String prefKey, Container msg) { 27 return show(prefKey, msg, true, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION);27 return show(prefKey, msg, false, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION); 28 28 } 29 29 30 30 public static boolean show(String prefKey, Container msg, Boolean state, int options, int true_option) { 31 if (!Main.pref.getBoolean("message."+prefKey )) {31 if (!Main.pref.getBoolean("message."+prefKey, state)) { 32 32 JCheckBox dontshowagain = new JCheckBox(tr("Do not show again")); 33 33 dontshowagain.setSelected(Main.pref.getBoolean("message."+prefKey, state));
Note:
See TracChangeset
for help on using the changeset viewer.