Article View: borland.public.jbuilder.java.swing
Article #10343Re: JTree Problem !
From: Michel P�rez
Date: Tue, 05 Oct 1999 00:00
Date: Tue, 05 Oct 1999 00:00
29 lines
1737 bytes
1737 bytes
As I matter of fact the node isn't selected, because the focus is on the JPanel, on the button, so the node in the JTree lost the focus. So I wan to paint the node in the JTree keepin the focus in the other JComponent, this is in order to give to the user the idea the option in the Jtree that he is working on. Thanks I Hope your soon answer Paul Furbacher [TeamB] <pf@bilbo.bio.purdue.edu> wrote in message news:37FA181B.CB4A01B8@bilbo.bio.purdue.edu... Michel P�rez wrote: > I has designed a JTree class in my gui this is expanded by an actionlistener > on a JButton and this listener add a JPanel with some JComponent. > How coul I paint the selected node in the JTree when I push the JButton ? > I have tried a paint method, but this doesn't work. > I need just paint a specific node but without requestFocust. It's not clear what you are trying to do. If the node is already selected, why do you want to repaint it when you press the button? And where are you adding the JPanel instance? To the tree? To the frame, or some panel within the frame? If you could provide a more detailed explanation, we might be able to make some suggestions. Paul Furbacher (TeamB)
Technical Details
Message-ID:
<7td659$ada12@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7tcpnc$7a64@forums.borland.com> <37FA181B.CB4A01B8@bilbo.bio.purdue.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,6f8f244681a92853 X-Google-Attributes: gid111d45,public From: "Michel P�rez" <mperez@eurobanco.com> Subject: Re: JTree Problem ! Date: 1999/10/05 Message-ID: <7td659$ada12@forums.borland.com> X-Deja-AN: 533111744 References: <7tcpnc$7a64@forums.borland.com> <37FA181B.CB4A01B8@bilbo.bio.purdue.edu> Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Newsgroups: borland.public.jbuilder.java.swing