Specifying Tool Tips for Cells
by, 04-26-2012 at 09:46 PM (412 Views)
Tool tip text that has been displayed is found out for a table cell by the renderer of cell, by default. But it might sometimes much simple thing to make specification of the tool tip text, by overriding the implementation of JTable of the method getToolTipText. How to use these 2 techniques have been shown in this section.
For addition of the tool tip in cell by renderer, first thing that needs to be done is to create or get the cell renderer. After this make it sure that JComponent would be the rendering component and then setToolTipText shall be invoked at it.