Chapter 13 Flashcards
Components
- Individual parts that a GUI is built from
- Represented by objects
Layout
- Deals with the issue of how to arrange the components on screen
- achieved by using layout managers
Event handling
-the task of reacting to user events, such as mouse button clicks or keyboard input
What are the 3 GUI libraries?
- AWT (Abstract Window Toolkit)- the oldest, introduced as part of original Java API
- Swing
- JavaFX library
What does the J in the class JButton indicate?
It is a swing version class, marked by J because there is an equivalent class in AWT named Button.
Almost everything you see in a GUI is contained in a __
Top-level window- which is one that is under the control of the operating system’s window management and which typically can be moved, resized, minimized, and maximized independently
Java calls them frames, JFrame class in Swing
Which 3 packages should always be imported completely in our GUI programs?
java.awt, java.awt.event, and javax.swing - needed for all Swing apps
A frame consists of what 3 parts?
- title bar
- optional menu bar
- content pane
Components are placed in a frame by adding them to the frame’s _ or _
menu bar or content pane
T/F: Immediately following the creation of the JFrame the frame will be visible and its content pane will be empty.
F: Immediately following the creation of the JFrame the frame will be invisible and its content pane will be empty.