Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
18 Cards in this Set
- Front
- Back
java.awt.* |
- AWT (abstract windows toolkit) - Main java package used to create and display GUI objects. - Relies heavily on operating system therefore graphics may vary with each operating system. |
|
javax.swing.* |
- Swing uses AWT to create a window then draws graphic in that window. - Does not really on the operating system and graphics are universal. - Plug & play capabilities. |
|
Containers |
- Used to group together GUI objects. |
|
Top-Level Containers |
- Main container for a java program. - All containers must go inside main container.
|
|
JFrame |
- Main window for a GUI/desktop application. |
|
Types of Windows |
- JDialog: Used to create dialog boxes. No min or max size. - JFrame: Contains a title bar, menu bars, and a border. Can be minimized/maximized/closed. - JWindow: Window with no buttons are maximization capabilities. Used for popups and splash screens. |
|
Contrainer Layers |
1. Root Pane 2. Content Pane 3. Menu Bar 4. Layered Pane 5. Glass Pane |
|
Root Pane |
Manages/Contains all of the layers. |
|
Layered Pane |
- Positions contents in Z order - Allows overlapping components to appear on top of each other. Holds the content and the menu.
|
|
Menu Bar |
- The home for the root container's menu. |
|
Content Pane |
- Container for the root panes visible components. (excluding menu bar) |
|
Glass Pane |
- Acts like a glass sheet over all layers. Transparent unless something is painted onto it. |
|
Threads |
- Units of execution in a program. - Programs start with one thread which begins in the main. - Threads can run together simultaneously - Programs with more than one thread are considered multi-threaded. |
|
Event Dispatch Thread (EDT) |
- Handles all events for the GUI. |
|
Initial Thread |
- Initializes the GUI and schedules it to be executed by the EDT. |
|
Worker Threads |
- Used for time consuming tasks. Takes pressure away from the EDT |
|
InvokeLater and InvokeAndWait |
- InvokeLater drops a task and leaves the task to be handled on it's own time. InvokeAndWait stops all activity until a task is finished. |
|
Runnable() |
Object that requires a run method to work. Used to create windows. |