Re: Swing Text components
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 29 Mar 2007 00:50:43 -0700
On Mar 29, 5:13 pm, "Uncle Sam" <sameervijay...@xxxxxxxxx> wrote:
I thought that might the problem. Can someone please suggest some easy
solution (other than maintaining something like a log of what
components owned focus in the past).
Apply a FocusListener to the components of
interest. Declare a class attribute of type
Component (e.g. 'lastComponent'). When focus
is lost, store a reference to the component
that lost it, in lastComponent.
This is both dangerously close to what you say
you do not want to do, and easily implemented.
And as an aside, I did not pursue your last
reply to me, since neither the 'snippets' nor
link was what I suggested. Please read the
SSCCE document before posting more code.
Andrew T.
.
- Follow-Ups:
- Re: Swing Text components
- From: Uncle Sam
- Re: Swing Text components
- References:
- Swing Text components
- From: Uncle Sam
- Re: Swing Text components
- From: Nigel Wade
- Re: Swing Text components
- From: Uncle Sam
- Swing Text components
- Prev by Date: Re: Swing Text components
- Next by Date: Re: problem with applet access to web service
- Previous by thread: Re: Swing Text components
- Next by thread: Re: Swing Text components
- Index(es):
Relevant Pages
|
|