Add grid layout for the maze

Still have to add the maze to MazeAppModel and delete reference in ui
classes
This commit is contained in:
antograb committed 2017-12-13 10:11:20 +01:00
1 parent 0e398a7b57
commit 94f4ab4e5a
12 files changed
+160 -10

No files matched your search

+5 -1
View File
@@ -1,16 +1,20 @@
package ui;
import javax.swing.*;
import maze.Maze;
public class MazeApp extends JFrame {
private final MazeMenuBar mazeMenuBar;
private final WindowPanel windowPanel;
private Maze maze;
public MazeApp() {
public MazeApp(Maze maze) {
super("Maze Solving Application");
setJMenuBar(mazeMenuBar = new MazeMenuBar(this));
setContentPane(windowPanel = new WindowPanel(this, maze)) ;
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);