package viewer;

import maze.Maze;

import javax.swing.*;
import java.awt.*;

/**
 * @author Nick Hirakawa
 */
public class MazeViewer extends JFrame {

    private JPanel panel;

    public MazeViewer(Maze maze, int cellSize){
        this(maze, cellSize, cellSize / 4);
    }

    public MazeViewer(Maze maze, int cellSize, int gapSize){
        this.panel = new MazePanel(maze, cellSize, gapSize);
        setContentPane(this.panel);
        int width = (maze.getWidth() + 1) * (cellSize + gapSize) + gapSize;
        int height = (maze.getHeight() + 1) * (cellSize + gapSize) + gapSize;
        this.setPreferredSize(new Dimension(width, height));
        this.pack();
        this.setVisible(true);
    }
}

@@ -329,24 +329,51 @@
 t gapSize)%7B%0A
+        setTitle(%22jMaze%22);%0A
         this

Add title to main frame