static TableWithTooltips tableWithTooltips() { ret (TableWithTooltips) swing(func { new TableWithTooltips }); } sclass TableWithTooltips extends JTable { public String getToolTipText(MouseEvent e) { String tip = null; Point p = e.getPoint(); int rowIndex = rowAtPoint(p); int colIndex = columnAtPoint(p); try { ret str(getValueAt(rowIndex, colIndex)); } catch { null; } } }