• 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/14

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;

14 Cards in this Set

  • Front
  • Back
An Applet is A Java program that is embedded in _________________, transported across a _______, and executed using a ___ _______
1. an HTML document
2. network
3. Web browser
Which Java file is linked to the HTML file
.class
True/False: an applet contains a main method
false
How many import statements does an applet require and what are they?
two import statements, they are import java.applet.* and java.awt.*
A Java applet must contain the key phrase _______ ______
extends Applet
AWT =?
Abstract Windows Toolkit
The keyword _______ indicates your applet will build upon, or inherit, the traits of the Applet class already defined in the java.applet package
extends
The HTML document that runs the Java applet must contain an <APPLET> tag with the following 3 attributes: what are they?
CODE: The name of the compiled applet you are calling WIDTH: The width of the applet on the screen
HEIGHT: The height of the applet on the screen
What are the four methods included in every applet?
public void init() ­
public void start()
public void stop()
public void destroy()
A fifth method is often used in a Java applet ­ the _______ method
paint()
What is a Label?
A Label is a built­in class that holds text that you can display within an Applet
What is a TextField?
A TextField is a component into which a user can type a single line of text data (text data includes any characters you can enter from the keyboard, including numbers and punctuation).
What does the addActionListener(ActionListener l) method do?
Adds the specified action listener to receive action events from this
text field
What code would you write to change a Label's font
Font fontName = new Font(“typeface”, style, point‐size);