🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Tooltips

#9310
From: John P. McGrath
Date: Wed, 26 Apr 2000 00:00
23 lines
1069 bytes
On Tue, 25 Apr 2000 10:55:59 -0400, Ernesto Bascon Pantoja wrote:

> I want to know how can I change the appearance of the tooltip in a
> single component (font, border, background or foreground colors).

Override createToolTip for the component:

   public JToolTip createToolTip() {
      JToolTip toolTip = new JToolTip();
      toolTip.setComponent( this );
         :
      toolTip.setFont( ... );
      toolTip.setBorder( ... );
      toolTip.setBackground( ... );
      toolTip.setForeground( ... );
         :
      return toolTip;
   }

-- 
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.137031abfd80e7fb9898aa@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3905B1FF.AA5666E6@ucbcba.edu.bo>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,6d0af3048c7ee576
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: Tooltips
Date: 2000/04/26
Message-ID: <MPG.137031abfd80e7fb9898aa@forums.borland.com>
X-Deja-AN: 616167623
References: <3905B1FF.AA5666E6@ucbcba.edu.bo>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing