public Button(String name, int x, int y, int width, int height) { this.name = name; this.rectangle = new Rectangle(x, y, width, height); state = BState.UP; mpressed = false; prev_mpressed = false; }