I created a table using JTable but it appears smaller than the panel as you see in the picture bellow ...
the code is
tableModel1 = new DefaultTableModel(data1,column_header1);
table_1 = new JTable(tableModel1);
JScrollPane scrollPane1 = new JScrollPane(table_1);
scrollPane1.setBounds(1, 1, 1050, 500);
panel_3.add(scrollPane1);