Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/AdvancedPreference.java
- Timestamp:
- 30.08.2009 19:07:24 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/AdvancedPreference.java
r1865 r2017 30 30 31 31 import org.openstreetmap.josm.Main; 32 import org.openstreetmap.josm.gui.OptionPaneUtil;33 32 import org.openstreetmap.josm.tools.GBC; 34 33 … … 219 218 private void editPreference(final PreferenceDialog gui, final JTable list) { 220 219 if (list.getSelectedRowCount() != 1) { 221 OptionPaneUtil.showMessageDialog(220 JOptionPane.showMessageDialog( 222 221 gui, 223 222 tr("Please select the row to edit."), … … 227 226 return; 228 227 } 229 String v = (String) OptionPaneUtil.showInputDialog(228 String v = (String) JOptionPane.showInputDialog( 230 229 Main.parent, 231 230 tr("New value for {0}", model.getValueAt(list.getSelectedRow(), 0)), … … 244 243 private void removePreference(final PreferenceDialog gui, final JTable list) { 245 244 if (list.getSelectedRowCount() == 0) { 246 OptionPaneUtil.showMessageDialog(245 JOptionPane.showMessageDialog( 247 246 gui, 248 247 tr("Please select the row to delete."), … … 266 265 p.add(new JLabel(tr("Value")), GBC.std().insets(0,0,5,0)); 267 266 p.add(value, GBC.eol().insets(5,0,0,0).fill(GBC.HORIZONTAL)); 268 int answer = OptionPaneUtil.showConfirmationDialog(267 int answer = JOptionPane.showConfirmDialog( 269 268 gui, p, 270 269 tr("Enter a new key/value pair"),
Note: See TracChangeset
for help on using the changeset viewer.
