> Hello,
>
[quoted text clipped - 7 lines]
> test.setToolTipText("rectangle"), but as far as I can tell, there's
> nothing like that. Is there some way to do this?
See
http://java.sun.com/docs/books/tutorial/uiswing/components/tooltip.html
There's a part that says:
<quote>
Multi-part components such as JTabbedPane, JTable, and JTree override [the
String getToolTipText(MouseEvent)] method to return a string associated with
the mouse event location. For example, each tab in a tabbed pane can have
different tool-tip text.
</quote>
- Oliver
Steve W. Jackson - 21 Apr 2006 21:02 GMT
> > Hello,
> >
[quoted text clipped - 21 lines]
>
> - Oliver
A Rectangle is nothing more than a class built around the x and y
coordinate of its upper left corner, and its width and height. It's
just a mathematical representation. A tooltip is displayed in response
to something happening between a mouse and a Swing component, such as a
JPanel or those listed above or others. So in order for a Rectangle to
have a tooltip, a graphical representation of it needs to appear on some
component and a tooltip needs to be assigned to that component (or the
appropriate area of it).
= Steve =

Signature
Steve W. Jackson
Montgomery, Alabama