🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ToolTip in JTree

#7928
From: stefan
Date: Wed, 29 Nov 2000 07:43
32 lines
2055 bytes
hello maria! (sorry for ma bad english!) :-)
do you have instanciated your DefaultMutableTreeNode

i do it on this way:
DefaultMutableTreeNode myNode = new DefaultMutableTreeNode(new
myTreeCellRenderer(tooltiptext));

public class myTreeCellRendererer extends DefaultTreeCellRenderer{

    public myTreeCellRenderer(String str){
        super();
        setToolTipText(str);
        setOpaque(false);
    }
}

and so you have created a tooltiptext on a tree node

stefan
Maria <olsztyniak@yahoo.com> schrieb in im Newsbeitrag:
OCZU5.15164$nh5.1439439@newsread1.prod.itd.earthlink.net...
> I have created a JTree and added a tooltip using setTooltip() method.
> However when I park a mouse over a table I do not get any tooltip
displayed.
> I checked that tooltip works fine in other components like menubar etc.
> Overwriting setToolTip() does not work either. It never gets called.
>
> Do you have any tips on JTree tooltip? Please share.
>
> M.
>
>
Technical Details
Message-ID: <90395h$fdd$1@news.bcc.de>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!do.de.uu.net!dortmund.de.uu.net!bcc.de!not-for-mail
References: <OCZU5.15164$nh5.1439439@newsread1.prod.itd.earthlink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,89eaaa7ed03ac58
X-Google-Attributes: gid111d45,public
X-Google-Thread: 113ae9,89eaaa7ed03ac58
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 10fd6d,89eaaa7ed03ac58
X-Google-Attributes: gid10fd6d,public
X-Google-ArrivalTime: 2000-11-28 23:44:28 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!do.de.uu.net!dortmund.de.uu.net!bcc.de!not-for-mail
From: "stefan" <stefan_30@hotmail.com>
Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui,comp.lang.java.help
Subject: Re: ToolTip in JTree
Date: Wed, 29 Nov 2000 08:43:28 +0100
Organization: Braunschweiger Communication Carrier GmbH
Lines: 34
Message-ID: <90395h$fdd$1@news.bcc.de>
References: <OCZU5.15164$nh5.1439439@newsread1.prod.itd.earthlink.net>
NNTP-Posting-Host: rtbs01.yic.de
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300