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

+19
View File
@@ -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);
}
}