Hi John,
 
    You could try :
        public void focusGained(FocusEvent e) {
            Component lostFocusCompontent = e.getComponent();
        }
 
NB - I am not sure what component this will return, but you could experiment
 
HTH,
 
Fintan   
 
 -----Original Message-----
From: Simonsen, John Klit [mailto:[EMAIL PROTECTED]]
Sent: 26 September 2002 13:07
To: JDJList
Subject: [jdjlist] RE: Focus question

Hi Fintan,
 
thanks for your answer, unfortunately, we're still on 1.3 and not able to upgrade just yet, any other suggestions?
 
John
 
 -----Original Message-----
From: Conway. Fintan (IT Solutions) [mailto:[EMAIL PROTECTED]]
Sent: 26. september 2002 14:00
To: JDJList
Subject: [jdjlist] RE: Focus question

Hi John,
 
    If you look up FocusEvent in the javadoc for the Java API you will see that there is a getOppositeComponent() function that does what you want.  This is only available from JDK 1.4 onwards.
 
Regards,
 
Fintan
-----Original Message-----
From: Simonsen, John Klit [mailto:[EMAIL PROTECTED]]
Sent: 26 September 2002 12:48
To: JDJList
Subject: [jdjlist] Focus question

In the focusLost method in my focus listener I would like to know which component is gaining the focus, is it possible, and how?
 
Thanks
John


This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm


* ** *** ** * ** *** ** * ** *** ** *
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
Any views or opinions presented are solely those of the author, and do not necessarily
represent those of ESB.
If you have received this email in error please notify the sender.

Although ESB scans e-mail and attachments for viruses, it does not guarantee
that either are virus-free and accepts no liability for any damage sustained
as a result of viruses.

* ** *** ** * ** *** ** * ** *** ** *
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to