Exam 12: Advanced Guis and Graphics

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following mouse events is handled by the interface MouseMotionListener?

Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
Verified

C

A mouse can generate ____ different types of events.

Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
Verified

C

The class Container is the superclass of all the classes designed to provide a GUI.

Free
(True/False)
4.8/5
(35)
Correct Answer:
Verified

True

Unlike application programs, when you compile a Java applet, no .class file is produced.

(True/False)
4.8/5
(43)

The class Graphics provides methods for drawing items such as lines, ovals, and rectangles on the screen.

(True/False)
4.8/5
(36)

A Java applet is the same as a Java GUI application program.

(True/False)
4.8/5
(43)

You must import the package javax.swing in order to use the methods in the class Font.

(True/False)
4.8/5
(40)

Which of the following sets the background color of the applet to white?

(Multiple Choice)
4.8/5
(31)

menuMB.add(fileMenu); MenuMB.add(editMenu); MenuMB.add(viewMenu); MenuMB.add(insertMenu);Which menu will appear first if it is added to the menu bar in the order shown in the accompanying figure?

(Multiple Choice)
4.8/5
(37)

Which of the following constructors would produce the color white?

(Multiple Choice)
4.7/5
(39)

In which of the following layout managers do all rows (columns) have the same number of components and all components have the same size?

(Multiple Choice)
4.8/5
(36)

The R in RGB stands for Right.

(True/False)
5.0/5
(32)

What class can be used to generate a random number?

(Multiple Choice)
4.9/5
(43)

Which of the following is the default layout manager for a Java application?

(Multiple Choice)
4.7/5
(35)

When you type a regular alphanumeric key, the ____ method is executed.

(Multiple Choice)
4.7/5
(42)

Like Java application programs, Java applets have the method main.

(True/False)
4.8/5
(33)

You can create an applet by extending the class JFrame.

(True/False)
4.8/5
(35)

When you press a meta key, the method ____ is executed.

(Multiple Choice)
4.9/5
(30)

Item events are handled by the interface ItemListener, which contains only the abstract method itemStateChanged.

(True/False)
4.8/5
(40)

The layout manager FlowLayout places components in the container from left to right and centered, by default, until no more items can be placed.

(True/False)
4.7/5
(44)
Showing 1 - 20 of 48
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)