Ignore:
Timestamp:
2013-04-19T22:21:57+02:00 (11 years ago)
Author:
Don-vip
Message:

see #4429 - Right click menu "undo, cut, copy, paste, delete, select all" for each text component (originally based on patch by NooN)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/server/BasicAuthenticationPreferencesPanel.java

    r5752 r5886  
    88import java.awt.GridBagLayout;
    99import java.awt.Insets;
     10import java.net.Authenticator.RequestorType;
    1011import java.net.PasswordAuthentication;
    11 import java.net.Authenticator.RequestorType;
    1212
    1313import javax.swing.BorderFactory;
    1414import javax.swing.JLabel;
    1515import javax.swing.JPanel;
    16 import javax.swing.JPasswordField;
    17 import javax.swing.JTextField;
    1816
    1917import org.openstreetmap.josm.gui.widgets.JosmPasswordField;
     18import org.openstreetmap.josm.gui.widgets.JosmTextField;
    2019import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator;
     20import org.openstreetmap.josm.io.OsmApi;
    2121import org.openstreetmap.josm.io.auth.CredentialsAgent;
    2222import org.openstreetmap.josm.io.auth.CredentialsAgentException;
    2323import org.openstreetmap.josm.io.auth.CredentialsManager;
    24 import org.openstreetmap.josm.io.OsmApi;
    2524
    2625/**
     
    3231
    3332    /** the OSM user name */
    34     private JTextField tfOsmUserName;
     33    private JosmTextField tfOsmUserName;
    3534    private UserNameValidator valUserName;
    3635    /** the OSM password */
    37     private JPasswordField tfOsmPassword;
     36    private JosmPasswordField tfOsmPassword;
    3837    /** a panel with further information, e.g. some warnings */
    3938    private JPanel decorationPanel;
     
    5655        gc.gridx = 1;
    5756        gc.weightx = 1.0;
    58         add(tfOsmUserName = new JTextField(), gc);
     57        add(tfOsmUserName = new JosmTextField(), gc);
    5958        SelectAllOnFocusGainedDecorator.decorate(tfOsmUserName);
    6059        valUserName = new UserNameValidator(tfOsmUserName);
Note: See TracChangeset for help on using the changeset viewer.