Forums

Full Version: New Tooltip Class (With Swing Elements Inside)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

cnriccomi

OK Guys,

I finally got a tooltip class that works. I ended up having to basically rewrite Java's "light weight popup" class (there were a number of reasons for doing this). In any case, I'm attaching a GraphView.java demo here, as well as in the pap repository.

I hope this is of use to someone. It does a number of things. For one, you can make tooltips sticky or unsticky. For another, though I haven't implemented it, you should be able to make tooltips draggable (something that was very very difficult with java's tooltip implementation). Finally, it behaves a little bit more predictably than java's tooltips (or the custom tooltips in prefuse).

Chris
Reference URL's