Add maze in Model, then modify UI methods using maze.
This commit is contained in:
1 parent
94f4ab4e5a
commit
892d7e6ff3
7 files changed
+31
-20
No files matched your search
@@ -7,13 +7,12 @@ import java.awt.*;
|
||||
public class WindowPanel extends JPanel
|
||||
{
|
||||
private final DrawingPanelGrid drawingPanelGrid;
|
||||
private Maze maze;
|
||||
|
||||
public WindowPanel(MazeApp mazeApp, Maze maze)
|
||||
{
|
||||
public WindowPanel(MazeApp mazeApp) {
|
||||
|
||||
setLayout(new BorderLayout());
|
||||
|
||||
add(drawingPanelGrid = new DrawingPanelGrid(mazeApp, maze), BorderLayout.CENTER);
|
||||
add(drawingPanelGrid = new DrawingPanelGrid(mazeApp), BorderLayout.CENTER);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user