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,20 @@
|
||||
package ui;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
public abstract class DrawingBox extends JPanel {
|
||||
|
||||
private final MazeApp mazeApp;
|
||||
private Color color;
|
||||
|
||||
public DrawingBox(MazeApp mazeApp, Color color) {
|
||||
|
||||
this.mazeApp = mazeApp;
|
||||
this.color = color;
|
||||
|
||||
setBackground(color);
|
||||
setPreferredSize(new Dimension(20,20));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user