wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Moveable tooltips Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Moveable tooltips" Watch "Moveable tooltips" New topic
Author

Moveable tooltips

N Fisher
Greenhorn

Joined: Sep 21, 2004
Posts: 5
I want to be able to create a tooltip which moves with the mouse, rather than staying static, as in this example here:

http://www.guistuff.com/tools/tooltip/tooltipgen2.cgi?navlinks=&titletextcolor=FFFFFF&titlefont=arial&titletextsize=8&contenttextcolor=000000&contentfont=arial&contenttextsize=8&titleareacolor=808080&contentareacolor=C0C0C0&tooltipwidth=150

Am I best doing this by using a mouseMotionListener and moving the tooltip to wherever the mouse position is? What would be the code exactly?

Thanks in advance.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
N Fisher
Greenhorn

Joined: Sep 21, 2004
Posts: 5
Thanks very much for the code!!

I will try it when I get home tonight, but it looks like it will do exactly what I want it to.

Cheers,


Nick
 
wood burning stoves
 
subject: Moveable tooltips
 
Similar Threads
urgent help in jsp taglib
Moveable tooltips
Jasper Report Design Problem
problem in using richfaces
Make rows not appear when certain row value appears