public void mouseDragged(MouseEvent e)
    {
	if (mouseDown == true)
	    {
		if (e.getX() < mouseX)
		    cube.rotateXZ(ROTATIONSPEED);
		else if (e.getX() > mouseX)
		    cube.rotateXZ(-ROTATIONSPEED);
		mouseX = e.getX();

		if (e.getY() < mouseY)
		    cube.rotateYZ(ROTATIONSPEED);
		else if (e.getY() > mouseY)
		    cube.rotateYZ(-ROTATIONSPEED);
		mouseY = e.getY();

		repaint();
	    }
    }