/** * Makes a line drawing of the maze * * @param arr array with an integer representation of the maze. */ public void drawMaze(Maze2D mz, boolean b) { imagePanel.makeLineDrawing(mz, b); imagePanel.getPreferredSize(); setMinimumSize(imagePanel.getPreferredSize()); imagePanel.repaint(); pack(); }