🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTree Node edition

#9449
From: John P. McGrath
Date: Wed, 22 Mar 2000 00:00
14 lines
878 bytes
On Tue, 21 Mar 2000 14:14:02 -0500, Mustapha Essalihe wrote:

> 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 !.

You need to override the following JTable method:

    public boolean isCellEditable( int row, int column );

-- 
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.13423c22859bb0d1989816@forums.borland.com>
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: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: JTree Node edition
Date: 2000/03/22
Message-ID: <MPG.13423c22859bb0d1989816@forums.borland.com>
X-Deja-AN: 600749937
References: <38D7C9FA.BC5B3D86@iro.umontreal.ca>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing