The Artima Developer Community
Sponsored Link

Java Answers Forum
Rendering swing tool tip text

1 reply on 1 page. Most recent reply: May 24, 2003 9:28 AM by Kamal

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
vinod

Posts: 22
Nickname: vinod
Registered: Feb, 2002

Rendering swing tool tip text Posted: May 21, 2003 9:29 PM
Reply to this message Reply
Advertisement
Hi all,

Is it possible to render tool tip text swing components. I want the toopl tip text to be in bold with different colors.

With reagrds,
Vinod


Kamal

Posts: 3
Nickname: kamal079
Registered: May, 2003

Re: Rendering swing tool tip text Posted: May 24, 2003 9:28 AM
Reply to this message Reply
Hi,
We can use HTML tags in the tooltip text.

F.ex.

public String getToolTipText(MouseEvent e) {
return "<html><body><b>Bold Text Example</b></body></html>";
}

Hope this helps.

regards
Kamal

Flat View: This topic has 1 reply on 1 page
Topic: how to call a java exe file from a webserver?? Previous Topic   Next Topic Topic: Java gets the system property ????

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use