«
^
»
2. Providing a graphical user interface (GUI)
APIs for producing GUIs
What the Swing API includes and how it is organised
A simple example of a GUI
Stage A: obtaining the current date and time
Stage B: creating a window
Stage C: adding GUI components to the window
Stage D: responding to a click of the button
Stage E: altering the
JTextField
component
Stage F: closing the window
Conclusion