Lesson 5.1: Graphical User Interface Design Flashcards
What does Java provide to display and interact with graphics?
Java provides packages to display and interact with graphics and multimedia objects.
What was the first grapics model that java used?
The first graphics model in Java was the Abstract Window Toolkit (AWT).
What does AWT stand for?
Abstract Windows Toolkit
What is the name of the top level container that housed all awt components?
The AWT model places all components in a top-level container called a frame.
How does AWT cause methods to be invoked?
AWT can detect events associated with specific components that cause methods to be invoked.
What is the primary purpose of AWT?
A primary purpose of AWT and later graphics models was to build graphic user interfaces.
Why did AWT use native graphics routines directly?
Native graphics routines offer much better performance than generic Java routines would.
How does AWT invoke the paint() method?
The paint() method is called automatically when the main class is instantiated.
How can an AWT object know if its window is closed?
A listener method can be attached to an AWT object that takes an action when the window is closed.
The _______ class defines the overall container in which components are displayed using AWT.
Frame
A/An _______ object represents the content that will be displayed when paint() is called.
graphics
A/An _______ is a method that’s intended to detect the occurrence of a particular event.
listener
The _______ class defines the methods described in the previous question.
java.awt.event