public void init() {
		setSize(width, height);
		setLayout(new BorderLayout());
		tick = 0;
		
		if (canvas != null) {
			add(canvas, BorderLayout.CENTER);
		}
		if (mouseHandler != null) {
			canvas.addMouseListener(mouseHandler);
		}
		if (keyboardHandler != null) {
			canvas.addKeyListener(keyboardHandler);
		}
		
		System.out.println("Initialized Applet.");
	}