Page 727 - Introduction to Programming with Java: A Problem Solving Approach
P. 727
0.0 Last A-Head 693
17
CHAPTER
GUI Programming—Component Layout, Additional GUI Components
Objectives
• Know GUI design basics.
• Know the benefits of using layout managers.
• Understand FlowLayout manager details.
• Understand BorderLayout manager details.
• Be able to use the SwingConstants interface.
• Understand GridLayout manager details.
Apago PDF Enhancer
• Use embedded layout managers and JPanels for windows that have a substantial number of components.
• Implement JTextArea components for text that spans more than one line.
• Implement a JCheckBox component for yes/no user input.
• Implement JRadioButton and JComboBox components when the user needs to choose a value
from among a list of predefined values.
• Become familiar with additional Swing components such as menus, scroll panes, and sliders.
Outline
17.1 Introduction
17.2 GUIDesignandLayoutManagers
17.3 FlowLayoutManager
17.4 BorderLayoutManager
17.5 GridLayoutManager
17.6 Tic-Tac-ToeExample
17.7 ProblemSolving:WinningatTic-Tac-Toe(Optional) 17.8 EmbeddedLayoutManagers
17.9 JPanelClass
17.10 MathCalculatorProgram
693