Fix regression on getDimensionX and add finals

* Make all appropriate methods final
* Add new messages to MazeAppModelMessage and handle them to act more
  accurately on observers updates
* Make all buttons from 'File' menu subclasses of FileMenu in order to
  have a cleaner ui folder
* Remove legacy code (for example, the former code used to animate the
  path drawing)
* Improve delegation
This commit is contained in:
regar42 committed 2018-01-14 14:00:07 +01:00
1 parent eaba5b6106
commit e76db727c7
40 files changed
+246 -257

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ import javax.swing.SpinnerModel;
import javax.swing.SpinnerNumberModel;
import javax.swing.SpringLayout;
public class NewMazeSpinnerBox extends JPanel
public final class NewMazeSpinnerBox extends JPanel
implements ActionListener {
private final MazeApp mazeApp;
@@ -48,7 +48,7 @@ public class NewMazeSpinnerBox extends JPanel
JSpinner rowSpinner = addLabeledSpinner(this, labels[1], rowSpinnerModel);
}
static protected JSpinner addLabeledSpinner(Container c,
protected static JSpinner addLabeledSpinner(Container c,
String label,
SpinnerModel model) {