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.
-
Seq2()
-
-
action(Event, Object)
- To work with Java 1.0 Browsers, we use an action method to detect
button pushes or example selection.
-
getAppletInfo()
- Standard getAppletInfo
-
handleEvent(Event)
-
-
init()
- The init method does the layout of the applet and validates the
container
-
main(String[])
- A main routine so that Seq2 can be run as an application
-
minimumSize()
- returns a minimum size so that Seq2 can be run as an application
-
preferredSize()
- returns a preferred size so that Seq2 can be run as an application
-
run()
- The run method is called when the calculate button is clicked.
-
start()
- Null start method.
-
stop()
- Null stop method.
Seq2
public Seq2()
init
public void init()
- The init method does the layout of the applet and validates the
container
- Overrides:
- init in class Applet
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
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.
stop
public void stop()
- Null stop method.
- Overrides:
- stop in class Applet
start
public void start()
- Null start method.
- Overrides:
- start in class Applet
getAppletInfo
public String getAppletInfo()
- Standard getAppletInfo
- Overrides:
- getAppletInfo in class Applet
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
minimumSize
public Dimension minimumSize()
- returns a minimum size so that Seq2 can be run as an application
- Overrides:
- minimumSize in class Container
preferredSize
public Dimension preferredSize()
- returns a preferred size so that Seq2 can be run as an application
- Overrides:
- preferredSize in class Container
main
public static void main(String args[])
- A main routine so that Seq2 can be run as an application