okButton = new JButton("Save Changes");
matrixEditor.getControlPanel().add(okButton);
okButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
matrixEditor.finishEditing();
configListener.commitChanges();
dialog.setVisible(false);
}
});