column header not visible in my JTable i have created a JPanel and added the JTable to the JPanel.
Object rowData[][] = { { \"Row1-Column1\", \"Row1-Column2\
You can add following code into your code
DefaultTableCellRenderer renderer = new DefaultTableCellRenderer(); renderer.setPreferredSize(new Dimension(0, 0)); table.getTableHeader().setDefaultRenderer(renderer);