- Timestamp:
- 2015-02-10T21:58:44+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java
r7083 r8038 37 37 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; 38 38 import org.openstreetmap.josm.gui.widgets.JosmPasswordField; 39 import org.openstreetmap.josm.gui.widgets.JosmTextField; 39 40 import org.openstreetmap.josm.io.OsmApi; 40 41 import org.openstreetmap.josm.tools.ImageProvider; … … 148 149 149 150 protected static class CredentialPanel extends JPanel { 150 protected JTextField tfUserName; 151 protected JosmTextField tfUserName; 151 152 protected JosmPasswordField tfPassword; 152 153 protected JCheckBox cbSaveCredentials; … … 156 157 157 158 protected void build() { 158 tfUserName = new JTextField(20); 159 tfUserName = new JosmTextField(20); 159 160 tfPassword = new JosmPasswordField(20); 160 161 tfUserName.addFocusListener(new SelectAllOnFocusHandler()); -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmTextField.java
r8005 r8038 21 21 * <li>adds an optional "hint" displayed when no text has been entered</li> 22 22 * <li>disables the global advanced key press detector when focused</li> 23 * <li>implements a workaround to <a href="https://bugs.openjdk.java.net/browse/JDK-6322854">JDK bug 6322854</a></li> 23 24 * <br>This class must be used everywhere in core and plugins instead of {@code JTextField}. 24 25 * @since 5886 … … 73 74 } 74 75 addFocusListener(this); 76 // Workaround for Java bug 6322854 77 JosmPasswordField.workaroundJdkBug6322854(this); 75 78 } 76 79
Note:
See TracChangeset
for help on using the changeset viewer.