Hi, Lets say I have a table. One of the columns of the table is short enough that the text of all the cells in that column are not fully visible. If I move my mouse to any of these cells, I would like to see the full text displayed (similar to the way the tool tip text display behavior). How can I do this? Thanks.
I think you just answered your own question.... extend the table's DefaultCellRenderer to add a tool tip to the component...
Here's a quick example... you may want to look for a multi-line tooltip implementation (there are probably some on JavaRanch, and there are definitely some floating out there on the 'Net...) since your lines of text will be pretty long...
-Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
ram anantha
Greenhorn
Joined: Nov 29, 2000
Posts: 6
posted
0
Thanks for the response. That was helpful. The default tool tip location is to the right and bottom. How can I change the position of the tool tip location? I tried overriding the setToolTipLocation(Point p) method in the cell renderer but that doesn't work. Thanks.