Objectives |
|
A graphical user interface ( GUI ) makes a system user-friendly and easy to use. Creating a GUI requires creativity and knowledge of how GUI components work. Since the GUI components in Java are very flexible and versatile, you can create a wide assortment of useful user interfaces.
Many Java IDEs provide tools for visually designing and developing GUI interfaces. This enables you to rapidly assemble the elements of a user interface (UI) for a Java application or applet with minimum coding. Tools, however, cannot do everything. You have to modify the programs they produce. Consequently, before you begin to use the visual tools, it is imperative that you understand the basic concepts of Java GUI programming.
Previous chapters briefly introduced several GUI components. This chapter introduces the frequently used GUI components in detail (see Figure 15.1).
Note
Throughout this book, the prefixes jbt , jchk , jrb , jlbl , jtf , jpf , jta , jcbo , jlst , jscb , and jsld are used to name reference variables for JButton , JCheckBox , JRadioButton , JLabel , JTextField , JPasswordField , JTextArea , JComboBox , JList , JScrollBar , and JSlider . |