Changeset 5752 in josm for trunk/src/org
- Timestamp:
- 2013-03-03T00:10:46+01:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplet.java
r5711 r5752 29 29 import org.openstreetmap.josm.data.ServerSidePreferences; 30 30 import org.openstreetmap.josm.gui.MainApplication.Option; 31 import org.openstreetmap.josm.gui.widgets.JosmPasswordField; 31 32 import org.openstreetmap.josm.tools.GBC; 32 33 import org.openstreetmap.josm.tools.I18n; … … 113 114 p.add(user, GBC.eol().fill(GBC.HORIZONTAL)); 114 115 p.add(new JLabel(tr("Password")), GBC.std().insets(0,0,20,0)); 115 JPasswordField pass = new J PasswordField(password == null ? "" : password);116 JPasswordField pass = new JosmPasswordField(password == null ? "" : password); 116 117 p.add(pass, GBC.eol().fill(GBC.HORIZONTAL)); 117 118 JOptionPane.showMessageDialog(null, p); -
trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java
r5111 r5752 36 36 import org.openstreetmap.josm.gui.help.HelpUtil; 37 37 import org.openstreetmap.josm.gui.preferences.server.ProxyPreferencesPanel; 38 import org.openstreetmap.josm.gui.widgets.JosmPasswordField; 38 39 import org.openstreetmap.josm.io.OsmApi; 39 40 import org.openstreetmap.josm.tools.ImageProvider; … … 157 158 protected void build() { 158 159 tfUserName = new JTextField(20); 159 tfPassword = new J PasswordField(20);160 tfPassword = new JosmPasswordField(20); 160 161 tfUserName.addFocusListener(new SelectAllOnFocusHandler()); 161 162 tfPassword.addFocusListener(new SelectAllOnFocusHandler()); -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r5452 r5752 40 40 import org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator; 41 41 import org.openstreetmap.josm.gui.widgets.HtmlPanel; 42 import org.openstreetmap.josm.gui.widgets.JosmPasswordField; 42 43 import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator; 43 44 import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel; … … 130 131 gc.gridx = 1; 131 132 gc.weightx = 1.0; 132 pnl.add(tfPassword = new J PasswordField(), gc);133 pnl.add(tfPassword = new JosmPasswordField(), gc); 133 134 SelectAllOnFocusGainedDecorator.decorate(tfPassword); 134 135 valPassword = new PasswordValidator(tfPassword); -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticPropertiesPanel.java
r3083 r5752 17 17 18 18 import org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator; 19 import org.openstreetmap.josm.gui.widgets.JosmPasswordField; 19 20 import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator; 20 21 … … 56 57 gc.gridx = 1; 57 58 gc.weightx = 1.0; 58 pnl.add(tfPassword = new J PasswordField(), gc);59 pnl.add(tfPassword = new JosmPasswordField(), gc); 59 60 SelectAllOnFocusGainedDecorator.decorate(tfPassword); 60 61 -
trunk/src/org/openstreetmap/josm/gui/preferences/server/BasicAuthenticationPreferencesPanel.java
r4690 r5752 17 17 import javax.swing.JTextField; 18 18 19 import org.openstreetmap.josm. Main;19 import org.openstreetmap.josm.gui.widgets.JosmPasswordField; 20 20 import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator; 21 21 import org.openstreetmap.josm.io.auth.CredentialsAgent; 22 22 import org.openstreetmap.josm.io.auth.CredentialsAgentException; 23 23 import org.openstreetmap.josm.io.auth.CredentialsManager; 24 import org.openstreetmap.josm.io.auth.JosmPreferencesCredentialAgent;25 24 import org.openstreetmap.josm.io.OsmApi; 26 25 … … 70 69 gc.gridx = 1; 71 70 gc.weightx = 1.0; 72 add(tfOsmPassword = new J PasswordField(), gc);71 add(tfOsmPassword = new JosmPasswordField(), gc); 73 72 SelectAllOnFocusGainedDecorator.decorate(tfOsmPassword); 74 73 tfOsmPassword.setToolTipText(tr("Please enter your OSM password")); -
trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java
r4690 r5752 29 29 import org.openstreetmap.josm.gui.JMultilineLabel; 30 30 import org.openstreetmap.josm.gui.help.HelpUtil; 31 import org.openstreetmap.josm.gui.widgets.JosmPasswordField; 31 32 import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel; 32 33 import org.openstreetmap.josm.io.DefaultProxySelector; … … 146 147 gc.gridx = 1; 147 148 gc.weightx = 1.0; 148 pnl.add(tfProxyHttpPassword = new J PasswordField(20),gc);149 pnl.add(tfProxyHttpPassword = new JosmPasswordField(20),gc); 149 150 tfProxyHttpPassword.setMinimumSize(tfProxyHttpPassword.getPreferredSize()); 150 151
Note:
See TracChangeset
for help on using the changeset viewer.