• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/17

Click to flip

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;

17 Cards in this Set

  • Front
  • Back

60185: The name of the class that must be extended to create an applet is _____.

JApplet

60186: The method that has the chief responsibility for drawing or redrawing graphical elements in the applet is called ____.

paint

60187: The class that provides the ability to draw and paint in the user's environment is called the _____ class.

Graphics

60189: The utility provided by Oracle (formerly Sun) to allow the display of applets without requiring a web browser is called

applet viewer

60188: The HTML tag needed to include an applet in a web page is _____.

APPLET

60205: When an applet is viewed as part of a web page, its paint method is invoked by _____.

the browser

60206: The HTML attribute used to identify the particular applet is _____.

CODE

60207: The HTML attribute used to locate the applet is _____.

CODEBASE

60190: Using the notation (x,y) [for example, (50,80)] write the coordinates of the top left pixel in the drawing region of the Graphics class:

(0, 0)

60193: Using the notation (x,y), write the coordinates of the bottom right pixel in an applet’s drawing region that is 800 pixels wide and 700 pixels high:

(799, 699)

60195: Using the notation (x,y), write the coordinates of the pixel that is half-way across the bottom boundary of an applet’s drawing region that is 600 pixels wide and 370 pixels high:

(300, 370)

The return type of the drawing and painting methods of the Graphics class is usually _____.

void

60198: Write the invocation (method name with arguments) needed to display the outline of a square whose sides are 60 pixels and whoe top right corner is located at (100,200).

drawRect(40, 200, 60, 60)

The Graphics class method for displaying text is _____.

drawString

60199: Given g, a reference to a Graphics object, use a constant defined in the Color class to write a statement that arranges for the next drawn rectangle to be red:

g.setColor(Color.RED);

60203: Write an expression that instantiates a new Color object. the color should be the whitest shade of pink without being 100% white.

new Color(255, 254, 254)

Write an expression that instantiates a new Color object. The color should the blackest shade of gray without being 100% black.

new Color(1, 1, 1)