Week7 Graphical User Interface (GUI). Abstract Windowing Toolkit (AWT) and Swing

 0    14 flashcards    up804653
mp3 indir Baskı oynamak kendini kontrol et
 
soru English cevap English
What are the 3 types of GUI API windows in java?
öğrenmeye başla
frames, dialogs, and applets.
what does API mean?
öğrenmeye başla
Application Programming Interface
Which of the following can stand alone? frames, dialogs, and applets.?
öğrenmeye başla
frames
Frame can be implemented using class ____ (from the original AWT – java. awt) and its subclass ____ which is a part of the more flexible ____ graphics API.
öğrenmeye başla
Frame can be implemented using class Frame and its subclass JFrame which is a part of the more flexible Swing graphics API. Frame can be implemented using class Frame and its subclass JFrame which is a part of the more flexible Swing graphics API.
what is a component object?
öğrenmeye başla
A component object can be displayed on window and the user can interact with the program using it.
A component that contains other components is called a ______
öğrenmeye başla
A component that contains other components is called a container
What is a heavy weight component?
öğrenmeye başla
heavyweight component is associated with its own native screen resource (commonly known as a peer).
what is a light weight compnent?
öğrenmeye başla
A lightweight component has no native screen resource of its own, so it is "lighter." A lightweight component relies on the screen resource from an ancestor in the containment hierarchy, possibly the underlying Frame object
What are the 3 basic top level containers?
öğrenmeye başla
JWindow, JFrame, JDialog
what is JPanel
öğrenmeye başla
lightweight container used mostly to organize objects within other containers
What is an applet?
öğrenmeye başla
An applet is a Java program embedded within a Web page and run by a Web browser
what can an applet contain?
öğrenmeye başla
An applet can contain objects from Buttons, TextFields, Labels, and other Component subclasses.
what is the short hand code of: Button myNewButton = new Button(“OK”); add(myNewButton);
öğrenmeye başla
add(new Button(“OK”));
Explain the init() method
öğrenmeye başla
The init() method is executed first when an applet program is run (similarly to the main() method in Java application program).

Yorum yapmak için giriş yapmalısınız.