Please help. I would like to get a table with columnHeads, rows and scrollbars. The following code does not show scrollbars. table = new JTable( rows, columnHeads ); JScrollPane scrollpane = new JScrollPane( table ); getContentPane().add( scrollpane, BorderLayout.CENTER ); The following code does show scrollbars but does not show "columnHeads". table = new JTable( rows, columnHeads ); JPanel panelTable = new JPanel(); panelTable.add(table); JScrollPane scrollpane = new JScrollPane( panelTable ); getContentPane().add( scrollpane, BorderLayout.CENTER ); What am I doing wrong?