Article View: borland.public.jbuilder.java.swing
Article #10514Re: navigating a JTree with keystrokes
From: Lois Neo
Date: Fri, 17 Sep 1999 00:00
Date: Fri, 17 Sep 1999 00:00
23 lines
1168 bytes
1168 bytes
listen to keyReleased() event instead of keyPressed() for keyCodes VK_LEFT and VK_RIGHT. -- Hope it helps, Lois Kevin O'Sullivan <kosullivan@elandtech.com> wrote in message news:7roaol$fg718@forums.borland.com... > Hi, > > I have a JTree in my application and I wan't the user to be able to navigate > purely using keystrokes. Specifically I want the left and right keys to > contract & expand paths. I tried listening for keyPressed events but they > only seemed to be triggered for normal character keystrokes. > > Any ideas? > > Thanks, > Kevin. > >
Technical Details
Message-ID:
<7rss8g$p4j3@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7roaol$fg718@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,1ba3f8880cdb3758 X-Google-Attributes: gid111d45,public From: "Lois Neo" <slneo@cybergal.com> Subject: Re: navigating a JTree with keystrokes Date: 1999/09/17 Message-ID: <7rss8g$p4j3@forums.borland.com> X-Deja-AN: 526235982 References: <7roaol$fg718@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "Lois Neo" <slneo@cybergal.com> Newsgroups: borland.public.jbuilder.java.swing