home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78a98.iso
/
Internet
/
Javadraw
/
DATA.Z
/
Twi.pre
< prev
next >
Wrap
Text File
|
1997-07-08
|
2KB
|
83 lines
#define _standalone
#undef _applet
#ifdef _applet _standalone
#error _applet and _standalone can not be defined both.
#endif
#ifndef _applet _standalone
#error You must define either _applet or _standalone.
#endif
#ifdef _applet
import java.applet.*;
public class \Name\ extends Applet implements Runnable
#endif
#ifdef _standalone
public class \Name\ extends Frame implements Runnable
#endif
{
#ifdef _standalone
public static void main(String args[])
{
\Name\ Main = new \Name\ ();
Main.run ();
//Add your code here
}
#endif
public void init()
{
//Add your code here
}
public void start()
{
//Add your code here
}
public void stop()
{
//Add your code here
}
public void destroy()
{
//Add your code here
}
public void run()
{
#ifdef _standalone
init ();
start ();
show ();
#endif
//Add your code here
}
public void paint(Graphics g)
{
//Add your code here
super.paint (g);
}
public boolean action (Event e, Object o)
{
//Add your code here
return super.action (e,o);
}
public boolean handleEvent (Event e)
{
//Add your code here
return super.handleEvent (e);
}
}
//JAVADRAW! type definition section
//Please do not alter this remark! [JDV5.0tds]