How to display a JTable in a JPanel with Java?
JTable table = new JTable(); JScrollPane spTable = new JScrollPane(table); JPanel panel = new JPanel(); panel.add(spTable);
There is a comphrensive guide about how to layout swing components, you should consider Pyrolistical link..