I have a table where each row represents a picture. In the column Path I store its absolute path. The string being kinda long, I would like that when I hover the mouse over the specific cell, a tooltip should pop-up next to the mouse containing the information from the cell.
Share
I assume you didn’t write a custom
CellRendererfor the path but just use theDefaultTableCellRenderer. You should subclass theDefaultTableCellRendererand set the tooltip in thegetTableCellRendererComponent. Then set the renderer for the column.