Re: Swing Text components



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.

.



Relevant Pages

  • Re: How to Resolve my first Negative Feedback?
    ... The post office make you wait 15 days before you can even report it ... it officially lost. ... Thats if you trust the buyer - if you don't then you should have sent ... Or make the post office declare something as ...
    (uk.people.consumers.ebay)
  • Re: Uncontrollable rage question
    ... I declare an action under uncontrollable rage, ... the effect is lost or remains until the very end of the action ... no matter if it is blocked or not? ...
    (rec.games.trading-cards.jyhad)
  • Re: Would one of you punk asses...
    ... when they lost bets, kennedy paid up and scott wilson paid up, and when i lost a bet to sheung so did i ... ... I do not think the United States would come to an end if ... we lost our power to declare an Act of Congress void. ...
    (rec.sport.football.college)
  • Re: Aggregate functions
    ... Think it's documented in a white paper somewhere - I've lost the reference now. ... declare @w varchar ...
    (microsoft.public.sqlserver.server)