🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by backstreetboy Wed, 14 Jun 2006 05:25
how to enable a leaf in a JTree after clicking it.
#176
Author: backstreetboy
Date: Wed, 14 Jun 2006 05:25
14 lines
1600 bytes
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
Re: how to enable a leaf in a JTree after clicking it.
#177
Author: 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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads