Develop a Swing GUI that looks like this. Suggestions for Swing components to employ for the GUI are here. Start with this code and add the needed functionality to it.
Your GUI should have the following functionality:
The up/down buttons can be used to increment and decrement the cool and heat set points. The software should ensure that the cool set point always remains above the heat set point. The current set point values are displayed in the text fields above the corresponding buttons.
Pressing the Vacation button sets the cool and heat set points to 85 and 60, respectively.
Pressing the Normal button sets the cool and heat set points to 74 and 68, respectively.
Initial values for both set points and current temperature are 72.
The SYSTEM STATE field always displays either OFF, or COOLING, or HEATING - based on the relative values of the current temperature, and the cool and heat set points. This field cannot be edited by the user.
The user can enter values into the Current Temperature field. When the user enters a value into the Current Temperature field and presses ENTER, the software updates the SYSTEM STATE field appropriately.