@@ -0,0 +1,526 @@
+import org.lwjgl.input.Mouse;%0Aimport org.lwjgl.opengl.GL11;%0A%0Apublic class Button extends Rectangle %7B%0A%0A  private boolean _pressed;%0A%09%0A%09public Button(double x, double y, double h, double w) %7B%0A%09%09super(x, y, h, w);%0A%09%09_pressed = false;%0A%09%7D%0A%09%0A%09public boolean isPressed()%7B return _pressed;%7D%0A%09public boolean setPressed(boolean p)%7B%0A%09%09boolean temp = _pressed;%0A%09%09_pressed = p;%0A%09%09return temp;%0A%09%7D%0A%09%0A%09public void update(int delta)%7B%0A%09%09super.update(delta);%0A%09%09if (Mouse.isButtonDown(0))%7B%0A%09%09%09_pressed = true;%0A%09%09%7D%0A%09%09else%0A%09%09%09_pressed = false;%0A%09%7D%0A%7D%0A

Create Button.java