addColumnAction = new AddColumnAction();
removeRowAction = new RemoveRowAction();
removeColumnAction = new RemoveColumnAction();
final JPanel toolbar = new JPanel(new FlowLayout(FlowLayout.RIGHT));
toolbar.add(new BorderlessButton(addRowAction));
toolbar.add(new BorderlessButton(addColumnAction));
toolbar.add(new BorderlessButton(removeRowAction));
toolbar.add(new BorderlessButton(removeColumnAction));
setLayout(new BorderLayout());
add(toolbar, BorderLayout.NORTH);
setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5));
add(new JScrollPane(table), BorderLayout.CENTER);