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:
1 parent
0e398a7b57
commit
94f4ab4e5a
12 files changed
+160
-10
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package ui;
|
||||
|
||||
import javax.swing.*;
|
||||
import maze.Maze;
|
||||
import java.awt.*;
|
||||
|
||||
public class WindowPanel extends JPanel
|
||||
{
|
||||
private final DrawingPanelGrid drawingPanelGrid;
|
||||
private Maze maze;
|
||||
|
||||
public WindowPanel(MazeApp mazeApp, Maze maze)
|
||||
{
|
||||
setLayout(new BorderLayout());
|
||||
|
||||
add(drawingPanelGrid = new DrawingPanelGrid(mazeApp, maze), BorderLayout.CENTER);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user