201202203204205206207208209210211
public void actionPerformed(ActionEvent e) { int row = table.getSelectedRow(); if (row == -1) { row = 0; } model.removeRow(row); } }); // add column button action addColumnButton.addActionListener(new ActionListener() { @Override