🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to enable a leaf in a JTree after clicking it.

#177
From: backstreetboy
Date: Wed, 14 Jun 2006 05:46
18 lines
1896 bytes
backstreetboy wrote:
> Hi there,
>
> Well i did create a small application using a JTree , the JTree ends at
> leaf node.
> I coded it such a way that once we click a leaf  a JFrame is
> displayed.Now once after clicking on a leaf it gets highlited (say blue
> in color) it allows me to click the same leaf  for the second time
> instantly but the JFrame doesnt open up this time, rather i need to
> click on some other leaf and then get back to the older one.
>
> Is there a work around for this, any help is appreciated.
>
> bye

i am  implementing TreeSelectionListener and writing my code in public
void valueChanged(TreeSelectionEvent e)
Technical Details
Message-ID: <1150263960.339120.87690@u72g2000cwu.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!u72g2000cwu.googlegroups.com!not-for-mail
References: <1150262727.331560.206180@g10g2000cwb.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,7056f7f96e5fcb82
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!u72g2000cwu.googlegroups.com!not-for-mail
From: "backstreetboy" <rajesh.backstreetboy@gmail.com>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: how to enable a leaf in a JTree after clicking it.
Date: 13 Jun 2006 22:46:00 -0700
Organization: http://groups.google.com
Lines: 19
Message-ID: <1150263960.339120.87690@u72g2000cwu.googlegroups.com>
References: <1150262727.331560.206180@g10g2000cwb.googlegroups.com>
NNTP-Posting-Host: 61.17.252.119
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1150263965 28454 127.0.0.1 (14 Jun 2006 05:46:05 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 14 Jun 2006 05:46:05 +0000 (UTC)
In-Reply-To: <1150262727.331560.206180@g10g2000cwb.googlegroups.com>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: u72g2000cwu.googlegroups.com; posting-host=61.17.252.119;
   posting-account=1YxNQw0AAADIoYaqze8KM7r9F8cXiBNA