How do i resize jtable according to jframe size

i want to make a table using JTable in java eclipse. But when it's running it's size not following the frame size when i pull the frame to make size as what i want.

i have to tried to add BorderLayout but the result is disorganized like this table

This is my code


        // Column Names 
        Object[] columnNames = { "Keyword", "DA", "PA", "Title", "URL",  "Backlink", "Load Time" }; 

        listTableModel = new DefaultTableModel(data, columnNames);
        for (int i = 0; i < list.size(); i++) { 
            listTableModel.addRow(new Object[] { list.get(i), "ICON", "ICON" }); 
        }

        table = new JTable(listTableModel);
        scrollPane = new JScrollPane(table);
        scrollPane.setBounds(10, 58, 736, 228);
        frame.getContentPane().setLayout(new BorderLayout());
        frame.getContentPane().add(scrollPane);
        frame.setSize(764, 324); 
        frame.setVisible(true);

The result is like this table