public void actionPerformed( ActionEvent e )
{
Object source = e.getSource();
SetToolBar setToolBar = ((SetToolBar)toolBar_);
SetController c = ((SetController)boardViewer_.getController());
if ( source == setToolBar.getAddButton()) {
c.addCards(1);
}
else if ( source == setToolBar.getRemoveButton()) {
c.removeCard();
}
else if ( source == setToolBar.getSolveButton()) {
//JOptionPane.showMessageDialog(this, "Solution Requested");
SolutionDialog solutionDialog = new SolutionDialog(null, (SetController) boardViewer_.getController());
solutionDialog.setVisible(true); //showDialog();
solutionDialog.pack();
}
setToolBar.getRemoveButton().setEnabled(c.canRemoveCards());
setToolBar.getAddButton().setEnabled(c.hasCardsToAdd());
super.actionPerformed( e );
boardViewer_.repaint();
}