Class Seq2

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----Seq2

public class Seq2
extends Applet
implements Runnable
The main class for the Schroedinger Applet. The calculations are done in a separate thread so it implements Runnable.


Constructor Index

 o Seq2()

Method Index

 o action(Event, Object)
To work with Java 1.0 Browsers, we use an action method to detect button pushes or example selection.
 o getAppletInfo()
Standard getAppletInfo
 o handleEvent(Event)
 o init()
The init method does the layout of the applet and validates the container
 o main(String[])
A main routine so that Seq2 can be run as an application
 o minimumSize()
returns a minimum size so that Seq2 can be run as an application
 o preferredSize()
returns a preferred size so that Seq2 can be run as an application
 o run()
The run method is called when the calculate button is clicked.
 o start()
Null start method.
 o stop()
Null stop method.

Constructors

 o Seq2
 public Seq2()

Methods

 o init
 public void init()
The init method does the layout of the applet and validates the container

Overrides:
init in class Applet
 o action
 public boolean action(Event e,
                       Object o)
To work with Java 1.0 Browsers, we use an action method to detect button pushes or example selection.

Overrides:
action in class Component
 o run
 public void run()
The run method is called when the calculate button is clicked. This spawns a new thread and starts it here. The run method reads all the fields and calculates the wave function.

 o stop
 public void stop()
Null stop method.

Overrides:
stop in class Applet
 o start
 public void start()
Null start method.

Overrides:
start in class Applet
 o getAppletInfo
 public String getAppletInfo()
Standard getAppletInfo

Overrides:
getAppletInfo in class Applet
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o minimumSize
 public Dimension minimumSize()
returns a minimum size so that Seq2 can be run as an application

Overrides:
minimumSize in class Container
 o preferredSize
 public Dimension preferredSize()
returns a preferred size so that Seq2 can be run as an application

Overrides:
preferredSize in class Container
 o main
 public static void main(String args[])
A main routine so that Seq2 can be run as an application