🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTree Node edition

#9450
From: Tor Iver Wilhelmsen
Date: Wed, 22 Mar 2000 00:00
8 lines
801 bytes
Mustapha Essalihe <essalihe@iro.umontreal.ca> writes:

>  I have a JTree and I want to edit only some nodes and not others, can I
> find methods to allow editing only those I want.
> jtree.setEditable(true) make all nodes editable !.

Try overriding JTree.isEditable() to test if the selection path
"points" to an editable node or not.
Technical Details
Message-ID: <uu2hz1gt0.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38D7C9FA.BC5B3D86@iro.umontreal.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c76e41445cd3c954
X-Google-Attributes: gid111d45,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: JTree Node edition
Date: 2000/03/22
Message-ID: <uu2hz1gt0.fsf@sds.no>
X-Deja-AN: 600786142
Sender: towi@SDSA1761
References: <38D7C9FA.BC5B3D86@iro.umontreal.ca>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing