public void menu(final MazeTeeter mazeteeter){
Graphics g = canvas.getOffscreenGraphics();
g.setColor(Color.BLACK);
g.fillRect(0, 0, xcanvas, ycanvas);
g.setColor(Color.WHITE);
g.setFont(new Font("SANS_SERIF", Font.ITALIC,100));
g.drawString("MazeTeeter", xcanvas/2 - 300, 200);
canvas.drawOffscreen();
class AddStartButtonListener implements ActionListener
{ public void actionPerformed(ActionEvent event){mazeteeter.runGame();}}
button = new JButton("Start Game");
ActionListener buttonListen = new AddStartButtonListener();
button.addActionListener(buttonListen);
panel = new JPanel();
panel.add(button);
panel.setBounds(xcanvas/2, ycanvas/2, 250, 100);
jframe.add(panel);
}