• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I force popup of tooltip?

 
JD Glanville
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for a way to force a tooltip to display itself. Unfortunatly, I can't find anything in the API, or anything at many of the java-examples websites.
I know how to modify the duration of the TT display and how to make it show instantaniously, but I don't know how to get it to sow a TT on component X right now, without the mouse.
Any suggestions would be appreciated.
Thanks.
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it might be possible to dispatch an event programmatically. in your case, that would be a mouse over event. but I don't know if these methods are an awt relict and whether they work right know as they should.
another way is, to safe the mouse position, use the java.awt.Robot to move the mouse and show the tooltip, and move the mouse back to its location while the tooltip still is up.
cheers
c
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!