public class SelectAllOnFocusGain extends Object
JTextComponent
select all of its text upon
gaining focus. This is fairly efficient and very cheap, even if a large
number of components are decorated.Modifier and Type | Method and Description |
---|---|
static SelectAllOnFocusGain |
decorate(JTextComponent comp)
Install SelectTextOnFocusGain behaviour on a component.
|
void |
undecorate()
Undecorate the component.
|
public static SelectAllOnFocusGain decorate(JTextComponent comp)
comp
- the component to decorate.public void undecorate()
Copyright © 2024 levigo holding gmbh. All rights reserved.