Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2007

Tip: Looking for answers? Try searching our database.

Tool Text Tip display time

Thread view: 
off by one - 24 Jun 2007 01:31 GMT
When I mouse over a swing component that has a tool text tip it
displays but only for a limited time.  I want it to display for as
long as the mouse is over it.  Can this display time be changed?
Jason Teagle - 24 Jun 2007 09:35 GMT
> When I mouse over a swing component that has a tool text tip it
> displays but only for a limited time.  I want it to display for as
> long as the mouse is over it.  Can this display time be changed?

Yes it can. Take a look at the ToolTipManager class - and the static
sharedInstance() method for obtaining the tooltip manager object so that you
can make those changes. Bear in mind that this will affect *all* tooltips in
your app - if you need this behaviour change on just one or two components,
an alternative might be to try and extend JToolTip and override
JComponent.createToolTip() to return your extended class.

Signature

Jason Teagle
jason@teagster.co.uk



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.