Create a simple windows calculator in Java. It should have a labeled text field for the user to provide input, as well as an Add, Subtract, and Clear buttons. There should be a label or disabled text field for output.
Add event handling to the buttons to add the value the user enters to the current total, subtract the value entered from the current total, and clear the current total.