Changeset 12304 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/SelectAllOnFocusGainedDecorator.java
- Timestamp:
- 2017-06-02T23:21:03+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/SelectAllOnFocusGainedDecorator.java
r9059 r12304 8 8 import javax.swing.text.JTextComponent; 9 9 10 /** 11 * A helper class that selects all text as soon as a {@link JTextComponent} receives focus. 12 */ 10 13 public class SelectAllOnFocusGainedDecorator extends FocusAdapter { 11 14 15 /** 16 * Add the listener to a given text component. 17 * @param tc The text component. 18 */ 12 19 public static void decorate(JTextComponent tc) { 13 20 if (tc == null) return;
Note:
See TracChangeset
for help on using the changeset viewer.