🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Dynamic ToolTip text in a gridcontrol

#9494
From: James Cook
Date: Tue, 28 Mar 2000 00:00
36 lines
1826 bytes
Have you read up on the following method in javax.swing.JTable?

    /**
     * Overrides JComponent's setToolTipText method to allow use of the
     * renderer's tips (if the renderer has text set).
     * <p>
     * NOTE: For JTable to properly display tooltips of its renderers
     *       JTable must be a registered component with the ToolTipManager.
     *       This is done automatically in initializeLocalVars(), but
     *       if at a later point JTable is told setToolTipText(null)
     *       it will unregister the table component, and no tips from
     *       renderers will display anymore.
     *
     * @see JComponent#getToolTipText
     */
    public String getToolTipText(MouseEvent event) {

jim

C.Zumbiehl <christian.zumbiehl@usa.net> wrote in message
news:38E0341E.9265D699@usa.net...
> Hi everybody ,
>
>  I'm desperately trying to display a  Tooltip text on a gridControl
> component depending on the cell
> the mouse is on. I can make this work on a JTable, but not on a
> gridControl.
> I have tried to use my own JToolTip object but it doesn't take
> precedence over the gridControl's one
>
> Any one has done this successfully ??
> Thanks for the help
> Christian
>
>
>
Technical Details
Message-ID: <38e0e8be.0@news.dot.state.oh.us>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38E0341E.9265D699@usa.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d6973bfa99926a06
X-Google-Attributes: gid111d45,public
From: "James Cook" <jimcook.spaminator@remove.for.spam.iname.com>
Subject: Re: Dynamic ToolTip text in a gridcontrol
Date: 2000/03/28
Message-ID: <38e0e8be.0@news.dot.state.oh.us>
X-Deja-AN: 603482717
References: <38E0341E.9265D699@usa.net>
X-Trace: 28 Mar 2000 12:15:42 -0500, dotfw001-dmz.dot.state.oh.us
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300