Hi Ajit, to set the columnwidth to zero u need to set all three setMaximumWidth(0); setPreferredWidth(0); setMinimumWidth(0); setPreferredWidth(0) does not work alone. regards Deekasha
Try this !! It worked for me !! Good luck .. Sandhya TableColumn column1 = null; column1 = JTable1.getColumnModel().getColumn(no. of the col you want to hide); column1.setMaxWidth(0); column1.setMinWidth(0); column1.setWidth(0); column1.setPreferredWidth(0);