You need to set visibility of the JScrollpane that contains the JTable, not the table.