Java Reference
In-Depth Information
appendix
B
graphical user
interfaces
A graphical user interface (GUI) is the modern alternative to terminal
I/O that allows a program to communicate with its user. In a GUI, a window
application is created. Some of the ways to perform input include selection
from a list of alternatives, pressing buttons, checking boxes, typing in text
fields, and using the mouse. Output can be performed by writing into text
fields as well as drawing graphics. In Java 1.2 or higher, GUI programming
is performed by using the Swing package.
In this appendix, we will see
A graphical user
interface ( GUI ) is
the modern alterna-
tive to terminal I/O
that allows a pro-
gram to communi-
cate with its user.
The basic GUI components in Swing
n
How these components communicate information
n
How these components can be arranged in a window
n
How to draw graphics
n
 
Search WWH ::




Custom Search