Auto Select text on textfield focus
- From: therodet@xxxxxxxxx
- Date: 13 Jul 2006 06:52:47 -0700
I want to make JTextFields in my application automatically select all
text when they receive focus, whether by mouse or by keyboard. More
importantly, I don't want to have to manually install listeners on
every JTextField I create.
It seems to me that this should be doable with a modified Look And
Feel, but I know nothing about modifying a LaF. Ideally, I would like a
solution that would automatically work with any LaF, though this is
less important; if I have to customize a specific LaF of my choice and
stick with that, then it's not a problem.
I'd also like to hear of any other suggested methods for accomplishing
this feat.
Thanks in advance,
Eldon
.
- Follow-Ups:
- Re: Auto Select text on textfield focus
- From: therodet
- Re: Auto Select text on textfield focus
- From: andrewthommo
- Re: Auto Select text on textfield focus
- Prev by Date: Re: JFFMPEG + JMF + RTP
- Next by Date: JFreechart
- Previous by thread: TableModel and ArrayIndexOutOfBounds caused by changing the data while rendering the table
- Next by thread: Re: Auto Select text on textfield focus
- Index(es):
Relevant Pages
|
|