Chapter 14 - GUI and event-driven programming. In this chapter, students will be able to: Define a subclass of JFrame to implement a customized frame window; write event-driven programs using Java's delegation-based event model; arrange GUI objects on a window using layout managers and nested panels; write GUI application programs using JButton, JLabel, ImageIcon, JTextField, JTextArea, JCheckBox, JRadioButton, JComboBox, JList, and JSlider objects from the package. | Chapter 14 GUI and Event-Driven Programming 4th Ed Chapter 14 - ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Objectives After you have read and studied this chapter, you should be able to Define a subclass of JFrame to implement a customized frame window. Write event-driven programs using Java's delegation-based event model Arrange GUI objects on a window using layout managers and nested panels Write GUI application programs using JButton, JLabel, ImageIcon, JTextField, JTextArea, JCheckBox, JRadioButton, JComboBox, JList, and JSlider objects from the package Write GUI application programs with menus Write GUI application programs that process mouse events 4th Ed Chapter 14 - ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. We will learn how to create a customized frame window by defining a subclass of the JFrame class. Among the many different types of GUI objects, arguably the buttons are most common. We will learn how to create and place buttons on a frame in this lesson. Graphical User Interface In Java, GUI-based programs are implemented by using classes from the and packages. The Swing classes provide greater compatibility across different operating systems. They are fully implemented in Java, and behave the same on different operating systems. 4th Ed Chapter 14 - ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Classes we use to develop GUI-based programs are located in two packages and . Many of the classes in the package are replaced by Swing counterparts, and for the most part, using the Swing classes over the AWT classes is the preferred approach because the newer Swing classes are better implementation. We still have to refer to package because there are some classes that are defined only in the package. Sample GUI Objects Various GUI objects from the . | Chapter 14 GUI and Event-Driven Programming 4th Ed Chapter 14 - ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Objectives After you have read and studied this chapter, you should be able to Define a subclass of JFrame to implement a customized frame window. Write event-driven programs using Java's delegation-based event model Arrange GUI objects on a window using layout managers and nested panels Write GUI application programs using JButton, JLabel, ImageIcon, JTextField, JTextArea, JCheckBox, JRadioButton, JComboBox, JList, and JSlider objects from the package Write GUI application programs with menus Write GUI application programs that process mouse events 4th Ed Chapter 14 - ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. We will learn how to create a customized frame window by defining a subclass of the JFrame class. Among the many different types of GUI objects, arguably the buttons are most