Baseballlover
Instructor
I am trying to hide one of the columns on a Jtable. I am using the DefaultTableCellRenderer class and the setVisible method. The code compiles, but nothing happens. I am able to set Tool Tip text, but I am not able to made the column invisible. Below is the code I use. Any help would be appreciated.
renderer1.setToolTipText("Help"
;
renderer1.setVisible(false);
tQQV1.getColumnModel().getColumn(2).setCellRenderer(renderer1);
renderer1.setToolTipText("Help"
renderer1.setVisible(false);
tQQV1.getColumnModel().getColumn(2).setCellRenderer(renderer1);