    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class netscape.samples.simple.ShowText

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Container
                       |
                       +----java.awt.Panel
                               |
                               +----java.applet.Applet
                                       |
                                       +----netscape.samples.simple.ShowText

public class ShowText
extends Applet

Note: Images may be missing from the JavaDocs generated.

Do not be alarmed: this is intentional and should not impact the usability of the JavaDocs as a reference.

##

message
  The string which stores the message to be displayed by the Applet/Bean

##

ShowText()

##

getMessage()
  getMessage is the "getter" method for the message property
init()
  Initializes the Applet / Bean with properties from PARAM tags to support HTML Serialization model -- thus getting the initial values from HTML instead of from a .ser file.
paint(Graphics)
  Paints the message string with a dark-gray drop shadow
setMessage(String)
  setMessage is the setter method for the message property -- defaults to "Netscape" if null is passed.

##

message

     public String message

  The string which stores the message to be displayed by the Applet/Bean

##

ShowText

     public ShowText()

##

init

     public void init()

  Initializes the Applet / Bean with properties from PARAM tags to support HTML Serialization model -- thus getting the initial values from HTML instead of from a .ser file.

  Overrides:
    init in class Applet

paint

     public void paint(Graphics g)

  Paints the message string with a dark-gray drop shadow

  Overrides:
    paint in class Container
  See Also:
    setMessage

getMessage

     public String getMessage()

  getMessage is the "getter" method for the message property

setMessage

     public void setMessage(String newVal)

  setMessage is the setter method for the message property -- defaults to "Netscape" if null is passed.

  Sets message and forces a repaint.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index