Changeset 416 in josm
- Timestamp:
- 2007-10-24T17:58:17+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r415 r416 15 15 import java.awt.event.FocusAdapter; 16 16 import java.awt.event.FocusEvent; 17 import java.awt.event.KeyAdapter; 17 18 import java.awt.event.KeyEvent; 18 19 import java.awt.event.MouseAdapter; … … 149 150 }; 150 151 final JDialog dlg = optionPane.createDialog(Main.parent, tr("Change values?")); 151 valueField.addActionListener(new ActionListener(){ 152 153 valueField.getEditor().addActionListener(new ActionListener() { 152 154 public void actionPerformed(ActionEvent e) { 155 dlg.setVisible(false); 153 156 optionPane.setValue(JOptionPane.OK_OPTION); 154 dlg.setVisible(false);155 157 } 156 158 }); 159 157 160 String oldValue = valueField.getEditor().getItem().toString(); 158 161 dlg.setVisible(true);
Note:
See TracChangeset
for help on using the changeset viewer.