[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple question about focus



You can also try this:     text.requestFocus();


----- Original Message -----
From: "Cynthia Jeness" <cj@goldencode.com>
To: "William M. Woodson" <radman@usefulware.com>
Cc: "List AJUG" <ajug-members@ajug.org>
Sent: Friday, August 17, 2001 10:40 AM
Subject: Re: simple question about focus


> William,
>
> If you are using Swing, you can try the "setFocus()" or "grabFocus()"
method
> of the component.  Depending on timing, this does not always work as
> expected.  So sometimes, I resort to invoking this method through
> SwingUtilities.invokeLater().
>
> Cindy
>
> "William M. Woodson" wrote:
>
> > I can't seem to find how to set the focus to a text field.  It doesn't
have
> > a Focused Property to set.
> >
> > Any help would be appreciated.
> > Bill
>