🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10495

navigating a JTree with keystrokes

#10495
From: Kevin O'Sullivan
Date: Wed, 15 Sep 1999 00:00
11 lines
845 bytes
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: <7roaol$fg718@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1ba3f8880cdb3758,start
X-Google-Attributes: gid111d45,public
From: "Kevin O'Sullivan" <kosullivan@elandtech.com>
Subject: navigating a JTree with keystrokes
Date: 1999/09/15
Message-ID: <7roaol$fg718@forums.borland.com>
X-Deja-AN: 525438231
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing