TAILIEUCHUNG - Lecture An introduction to object-oriented programming with Java: Chapter 14 - C. Thomas Wu

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. | ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 14 - Chapter 14 GUI and Event-Driven Programming Animated Version Introduction to OOP with Java 4th Ed, C. Thomas Wu © The McGraw-Hill Companies, Inc. 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 Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. 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. ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 14 - 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. Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. 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 .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.