- Don't use a null layout!!! Don't use setBounds(). Swing was designed to be used with layout managers.
- Don't add the TableHeader to a panel.
- You are adding the scrollPane to two different components. It should only be added to one.
- Panels are visible by default. You don't need pnlView.setVisible(true)
- Why are you creating the "panel" variable and adding an empty panel to the frame?
Read the JTable API and follow the link to the Swing tutorial on How to Use Tables
for working examples. Start with working code. The tutorials also show you how to better structure your code by using SwingUtilities.invokeLater(...).