Article View: borland.public.jbuilder.java.language
Article #16517Getting JTree focus
From: Leo Cohen
Date: Thu, 18 Feb 1999 00:00
Date: Thu, 18 Feb 1999 00:00
21 lines
1080 bytes
1080 bytes
I have several JTrees on the screen in non-modal windows so I can switch between them. I have set up a focus listener for for focus gained for both the frame and the JTree in the frame, but neither listener seems to pick up the change of focus. Question: How do I determine which JTree has the current focus? Also, in one tree, how do I know when the focus has changed from one node to another? -- Leo Cohen 116-1 Howard Drive Charlottesville, VA 22903 804-243-8922 (UVA) 804-244-4648 (home) 804-244-7922 (home fax) 815-550-9313 (office fax) lcohen@cs.virginia.edu
Technical Details
Message-ID:
<36CC93C1.2223D38@cs.virginia.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,645d8e7693c85a83,start X-Google-Attributes: gidf74b3,public From: Leo Cohen <lcohen@cs.virginia.edu> Subject: Getting JTree focus Date: 1999/02/18 Message-ID: <36CC93C1.2223D38@cs.virginia.edu> X-Deja-AN: 445854880 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language