Đang chuẩn bị liên kết để tải về tài liệu:
Introduction to java programming: Chapter 12 - GUI Basics
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
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 10.2 Abstract Classes in Chapter 10 10.4 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 12.2 . To describe the Java GUI API hierarchy 12.3 . To create user interfaces using frames panels and simple UI components 12.4 . To understand the role of layout managers 12.5 . To use the FlowLayout GridLayout and BorderLayout managers to layout components in a container 12.5 . To specify colors and fonts using the Color and Font classes 12.6-12.7 . To use JPanel as subcontainers 12.8 . 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. .