Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/StyleSources.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/StyleSources.java
r1865 r2017 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.Color;7 6 import java.awt.Component; 8 7 import java.awt.GridBagLayout; 9 8 import java.awt.event.ActionEvent; 10 9 import java.awt.event.ActionListener; 11 12 10 import java.io.BufferedReader; 13 11 import java.io.InputStreamReader; … … 25 23 import javax.swing.JList; 26 24 import javax.swing.JOptionPane; 25 import javax.swing.JPanel; 27 26 import javax.swing.JScrollPane; 28 import javax.swing.JPanel;29 27 import javax.swing.ListCellRenderer; 30 28 31 29 import org.openstreetmap.josm.Main; 32 import org.openstreetmap.josm.gui.OptionPaneUtil;33 30 import org.openstreetmap.josm.io.MirroredInputStream; 34 31 import org.openstreetmap.josm.tools.GBC; … … 140 137 iconadd.addActionListener(new ActionListener(){ 141 138 public void actionPerformed(ActionEvent e) { 142 String source = OptionPaneUtil.showInputDialog(139 String source = JOptionPane.showInputDialog( 143 140 Main.parent, 144 141 tr("Icon paths"), … … 156 153 public void actionPerformed(ActionEvent e) { 157 154 if (sourcesList.getSelectedIndex() == -1) { 158 OptionPaneUtil.showMessageDialog(155 JOptionPane.showMessageDialog( 159 156 Main.parent, 160 157 tr("Please select the row to edit."), … … 163 160 ); 164 161 } else { 165 String source = (String) OptionPaneUtil.showInputDialog(162 String source = (String)JOptionPane.showInputDialog( 166 163 Main.parent, 167 164 tr("Icon paths"), … … 183 180 public void actionPerformed(ActionEvent e) { 184 181 if (iconsList.getSelectedIndex() == -1) { 185 OptionPaneUtil.showMessageDialog(182 JOptionPane.showMessageDialog( 186 183 Main.parent, tr("Please select the row to delete."), 187 184 tr("Warning"), … … 197 194 add.addActionListener(new ActionListener(){ 198 195 public void actionPerformed(ActionEvent e) { 199 String source = OptionPaneUtil.showInputDialog(196 String source = JOptionPane.showInputDialog( 200 197 Main.parent, 201 198 name, … … 212 209 public void actionPerformed(ActionEvent e) { 213 210 if (sourcesList.getSelectedIndex() == -1) { 214 OptionPaneUtil.showMessageDialog(211 JOptionPane.showMessageDialog( 215 212 Main.parent, tr("Please select the row to edit."), 216 213 tr("Warning"), JOptionPane.WARNING_MESSAGE); 217 214 } else { 218 String source = (String) OptionPaneUtil.showInputDialog(215 String source = (String)JOptionPane.showInputDialog( 219 216 Main.parent, 220 217 name, … … 236 233 public void actionPerformed(ActionEvent e) { 237 234 if (sourcesList.getSelectedIndex() == -1) { 238 OptionPaneUtil.showMessageDialog(Main.parent, tr("Please select the row to delete."),235 JOptionPane.showMessageDialog(Main.parent, tr("Please select the row to delete."), 239 236 tr("Warning"), JOptionPane.WARNING_MESSAGE); 240 237 } else { … … 248 245 public void actionPerformed(ActionEvent e) { 249 246 if (sourcesDefaults.getSelectedIndex() == -1) { 250 OptionPaneUtil.showMessageDialog(247 JOptionPane.showMessageDialog( 251 248 Main.parent, tr("Please select the row to copy."), 252 249 tr("Warning"), JOptionPane.WARNING_MESSAGE);
Note: See TracChangeset
for help on using the changeset viewer.
