Changeset 1397 in josm for trunk/src/org/openstreetmap/josm/io/OsmConnection.java
- Timestamp:
- 2009-02-14T12:25:54+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmConnection.java
r1169 r1397 17 17 import javax.swing.JCheckBox; 18 18 import javax.swing.JLabel; 19 import javax.swing.JOptionPane;20 19 import javax.swing.JPanel; 21 20 import javax.swing.JPasswordField; … … 23 22 24 23 import org.openstreetmap.josm.Main; 24 import org.openstreetmap.josm.gui.ExtendedDialog; 25 25 import org.openstreetmap.josm.tools.Base64; 26 26 import org.openstreetmap.josm.tools.GBC; … … 90 90 p.add(savePassword, GBC.eop()); 91 91 92 int choice = JOptionPane.showConfirmDialog(Main.parent, p, tr("Enter Password"), JOptionPane.OK_CANCEL_OPTION); 93 if (choice == JOptionPane.CANCEL_OPTION) { 92 int choice = new ExtendedDialog(Main.parent, 93 tr("Enter Password"), 94 p, 95 new String[] {tr("Login"), tr("Cancel")}, 96 new String[] {"ok.png", "cancel.png"}).getValue(); 97 98 if (choice != 1) { 94 99 authCancelled = true; 95 100 return null;
Note:
See TracChangeset
for help on using the changeset viewer.