TAILIEUCHUNG - Introduction to java programming: Chapter 12 - GUI Basics

Introduction to java programming: Chapter 12 - GUI Basic's Objectives is to distinguish simple GUI components; describe the Java GUI API hierarchy; create user interfaces using frames, panels, and simple UI components; understand the role of layout managers. | Chapter 12 GUI Basics Chapter 12 GUI Basics Chapter 13 Graphics Chapter 14 Event-Driven Programming Chapter 15 Creating User Interfaces Chapter 16 Applets and Multimedia Abstract Classes in Chapter 10 Interfaces in Chapter 10 Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. 0-13-148952-6 1 Objectives To distinguish simple GUI components . To describe the Java GUI API hierarchy . To create user interfaces using frames panels and simple UI components . To understand the role of layout managers . To use the FlowLayout GridLayout and BorderLayout managers to layout components in a container . To specify colors and fonts using the Color and Font classes . To use JPanel as subcontainers . Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. 0-13-148952-6 Creating GUI Objects Create a button with text OK JButton jbtOK new JButton OK Create a label with text Enter your name JLabel jlblName new JLabel Enter your name Label Text Check Radio field Box Button Button Create a text field with text Type Name Here JTextField jtfName new JTextField Type Name Here Combo Box Create a check box with text bold JCheckBox jchkBold new JCheckBox Bold Create a radio button with text red JRadioButton jrbRed new JRadioButton Red Create a combo box with choices red green and blue JComboBox jcboColor new JComboBox new String Red Green Blue Liang Introduction to Java Programming Fifth Edition c 2005 Pearson Education Inc. All rights reserved. .

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.