🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Change the font of ToolTipText

#11072
From: Anil Kumar
Date: Tue, 13 Jul 1999 00:00
31 lines
1175 bytes
Try this. It's tested using JDK1.2. Let me know if this works.

  JButton button3 = new JButton("Next")
  {
   public JToolTip createToolTip()
   {
    JToolTip tt = new JToolTip();
    tt.setFont(new Font("Courier", Font.BOLD, 12));
    return tt;
   }
  };
  button3.setToolTipText("Click here for Next");

Let me know if this works.
-Anil Kumar


Boris Villazon wrote in message
<3784F5D9.E6315D30@estudiantes.ucbcba.edu.bo>...
>Hi:
>
>I want to change the font of the tooltiptext.
>
>I proved with jtooltip but it don't make changes.
>
>How can I do this?
>
>Thanks in advance
>
>                                                Boris Villaz�n
>
Technical Details
Message-ID: <7mg4jb$t513@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3784F5D9.E6315D30@estudiantes.ucbcba.edu.bo>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,b7722a2c22626d17
X-Google-Attributes: gid111d45,public
From: "Anil Kumar" <a@b.com>
Subject: Re: Change the font of ToolTipText
Date: 1999/07/13
Message-ID: <7mg4jb$t513@forums.borland.com>
X-Deja-AN: 500633747
References: <3784F5D9.E6315D30@estudiantes.ucbcba.edu.bo>
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.swing