gbc = new GridBagConstraints();
gbc.gridx = 3;
gbc.gridy = 2;
gbc.insets = new Insets(5, 5, 5, 5);
tablesPane.add(new BorderlessButton(sortUpAction), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 4;
gbc.gridy = 2;
gbc.insets = new Insets(5, 5, 5, 5);
tablesPane.add(new BorderlessButton(sortDownAction), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 5;
gbc.gridy = 2;
gbc.insets = new Insets(5, 5, 5, 5);
tablesPane.add(new BorderlessButton(addGroupAction), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 6;
gbc.gridy = 2;
gbc.insets = new Insets(5, 5, 5, 5);
tablesPane.add(new BorderlessButton(removeGroupAction), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 2;
gbc.gridy = 3;
gbc.weighty = 1;
gbc.fill = GridBagConstraints.BOTH;
gbc.gridwidth = 5;
gbc.insets = new Insets(0, 5, 5, 0);
tablesPane.add(new JScrollPane
(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED), gbc);
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = 3;
gbc.insets = new Insets(5, 5, 5, 0);
tablesPane.add(new BorderlessButton(new AddSelectionAction(paletteList.getSelectionModel())), gbc);
contentPane.removeAll();
contentPane.add(tablesPane);
contentPane.invalidate();
contentPane.revalidate();