adalogo
Class AdaLogo
public class AdaLogo
extends JApplet
this is the main class.
it has a main() method to start as application
and also init() to run as applet.
when running as applet it will only have one button
which will then open the frame.
AdaLogo() - constructor, used when run as applet.
|
void | destroy()
|
String | getAppletInfo()
|
String[][] | getParameterInfo()
|
void | init() - init when run as applet.
|
static void | main(String[] args) - main method when run as application, this will just start the engine.
|
void | start()
|
void | startEngine() - this will start the engine, which will open the main frame.
|
void | stop()
|
void | stopEngine() - this will be called by engine, if frame was closed,
to re-enable button.
|
AdaLogo
public AdaLogo()
constructor, used when run as applet.
this will create a button which will start the engine.
destroy
public void destroy()
getAppletInfo
public String getAppletInfo()
getParameterInfo
public String[][] getParameterInfo()
init
public void init()
init when run as applet.
java.applet.Applet.init()
main
public static void main(String[] args)
main method when run as application, this will just start the engine.
everything else here is only of interrest if run as applet
args
-
startEngine
public void startEngine()
this will start the engine, which will open the main frame.
this method will be called by the button if started as applet.
stopEngine
public void stopEngine()
this will be called by engine, if frame was closed,
to re-enable button.