c.gridwidth = 6;
c.gridwidth = 7;
    private void init() {        // Create the tileset table        tilesetTable = new JTable(new TilesetTableModel(map));        tilesetTable.getSelectionModel().addListSelectionListener(this);        JScrollPane tilesetScrollPane = new JScrollPane(tilesetTable);        tilesetScrollPane.setPreferredSize(new Dimension(360, 150));        // Create the buttons        saveButton = new JButton("Save");        editButton = new JButton("Edit...");        saveAsButton = new JButton("Save as...");        embedButton = new JButton("Embed");        removeButton = new JButton("Remove");        closeButton = new JButton("Close");        saveAsButton.addActionListener(this);        saveButton.addActionListener(this);        embedButton.addActionListener(this);        removeButton.addActionListener(this);        editButton.addActionListener(this);        closeButton.addActionListener(this);        // Create the main panel        JPanel mainPanel = new JPanel(new GridBagLayout());        mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));        GridBagConstraints c = new GridBagConstraints();        c.fill = GridBagConstraints.BOTH;        c.gridy = 0;        c.gridwidth = 6;        c.gridheight = 1;        c.weightx = 1;        c.weighty = 1;        mainPanel.add(tilesetScrollPane, c);        c.insets = new Insets(5, 0, 0, 5);        c.gridy = 1;        c.weighty = 0;        c.weightx = 0;        c.gridwidth = 1;        mainPanel.add(saveButton, c);        mainPanel.add(saveAsButton, c);        mainPanel.add(embedButton, c);        mainPanel.add(removeButton, c);        mainPanel.add(editButton, c);        c.weightx = 1;        mainPanel.add(Box.createGlue(), c);        c.weightx = 0;        c.insets = new Insets(5, 0, 0, 0);        mainPanel.add(closeButton, c);        getContentPane().add(mainPanel);        getRootPane().setDefaultButton(closeButton);        tilesetTable.changeSelection(0, 0, false, false);    }