home *** CD-ROM | disk | FTP | other *** search
- import java.awt.event.*;
-
- public class \Name\ extends Frame implements Runnable
- {
-
- public static void main(String args[])
- {
- \Name\ Main = new \Name\ ();
- Main.run ();
- //Add your code here
- }
-
- public void init()
- {
- enableEvents (AWTEvent.COMPONENT_EVENT_MASK+AWTEvent.FOCUS_EVENT_MASK+AWTEvent.KEY_EVENT_MASK+AWTEvent.MOUSE_EVENT_MASK+AWTEvent.MOUSE_MOTION_EVENT_MASK+AWTEvent.WINDOW_EVENT_MASK);
- initListeners();
- //Add your code here
- }
-
- private void initListeners()
- {
- }
-
- public void start()
- {
- //Add your code here
- }
-
- public void stop()
- {
- //Add your code here
- }
-
- public void destroy()
- {
- //Add your code here
- }
-
- public void run()
- {
- init ();
- start ();
- show ();
- //Add your code here
- }
-
- public void paint(Graphics g)
- {
- //Add your code here
- super.paint (g);
- }
-
- public void processEvent (AWTEvent e)
- {
- //Add your code here
- super.processEvent (e);
- }
-
- public void processComponentEvent (ComponentEvent e)
- {
- //Add your code here
- super.processComponentEvent (e);
- }
-
- public void processFocusEvent (FocusEvent e)
- {
- //Add your code here
- super.processFocusEvent (e);
- }
-
- public void processKeyEvent (KeyEvent e)
- {
- //Add your code here
- super.processKeyEvent (e);
- }
-
- public void processMouseEvent (MouseEvent e)
- {
- //Add your code here
- super.processMouseEvent (e);
- }
-
- public void processMouseMotionEvent (MouseEvent e)
- {
- //Add your code here
- super.processMouseMotionEvent (e);
- }
-
- public void processWindowEvent (WindowEvent e)
- {
- if (e.getID()==WindowEvent.WINDOW_CLOSING) { dispose(); System.exit(0); }
- //Add your code here
- super.processWindowEvent (e);
- }
-
- }
-
- //JAVADRAW! type definition section
- //Please do not alter this remark! [JDV5.0tds]
-
-