Ignore:
Timestamp:
2009-02-14T12:25:54+01:00 (15 years ago)
Author:
stoecker
Message:

apply patches from xeen for #1977.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmConnection.java

    r1169 r1397  
    1717import javax.swing.JCheckBox;
    1818import javax.swing.JLabel;
    19 import javax.swing.JOptionPane;
    2019import javax.swing.JPanel;
    2120import javax.swing.JPasswordField;
     
    2322
    2423import org.openstreetmap.josm.Main;
     24import org.openstreetmap.josm.gui.ExtendedDialog;
    2525import org.openstreetmap.josm.tools.Base64;
    2626import org.openstreetmap.josm.tools.GBC;
     
    9090                p.add(savePassword, GBC.eop());
    9191
    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) {
    9499                    authCancelled = true;
    95100                    return null;
Note: See TracChangeset for help on using the changeset viewer.