Re: Ditching focus of a JTextField



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.
.