Re: Ditching focus of a JTextField
- From: Roedy Green <look-on@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 18:14:51 GMT
On Tue, 27 Sep 2005 10:27:13 -0400, "Rob McDonald"
<robm@xxxxxxxxxxxxxxxxxxxxxx> wrote or quoted :
>
>However, after pressing enter, the cursor remains blinking in the box. The
>user has no feedback that his input has been accepted. I need to force the
>focus away from the textfield after input is complete. However, I don't
>really want focus to go anywhere else in particular....
What happens if you do a setFocus( null )?
this is not the solution to you problem, but to a closely related one.
So I bring it up.
theButton.setFocusPainted( false );
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.
- References:
- Ditching focus of a JTextField
- From: Rob McDonald
- Ditching focus of a JTextField
- Prev by Date: Re: JTextArea memory leak
- Next by Date: Re: Can not enter ^
- Previous by thread: Re: Ditching focus of a JTextField
- Next by thread: Re: Ditching focus of a JTextField
- Index(es):