Oct 13

You need to subclass JTable and override the method getToolTipText().


JTable table = new JTable(model)
{
    public String getToolTipText(MouseEvent event)
    {
        int col  = convertColumnIndexToModel(
           columnAtPoint(event.getPoint()));
        return getColumnName(col);
    }
}; 

written by objects \\ tags: ,


Leave a Reply

You must be logged in to post a comment.