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

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