home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-06-13 | 1.2 KB | 65 lines |
- // AutoFrame - exercise the RWMenu class
- import java.applet.*;
- import java.awt.*;
- import RWMenu;
-
- public class AutoFrame extends Applet
- {
-
- public AutoFrame()
- {
- // TODO: Add Constructor code here
- }
-
- public String getAppletInfo()
- {
- return "Name: AutoFrame\r\n" +
- "Author: Stephan R. Davis\r\n" +
- "Created for Learn Java Now";
- }
-
-
- public void init()
- {
- resize(320, 240);
-
- // TODO: Place Addition Initialization code here
- // create a framed window
- Frame frame = new Frame("ResourceWizard created menu");
- frame.resize(400, 200);
-
- // now create a RWMenu on this frame
- RWMenu menu = new RWMenu(frame);
-
- // finally create the members of the RWMenu
- menu.CreateMenu();
-
- // now show the frame with the menu attached
- frame.show();
- }
-
- public void destroy()
- {
- // TODO: Place applet cleanup code here
- }
-
- public void paint(Graphics g)
- {
- }
-
- public void start()
- {
- // TODO: Place additional applet Start code here
- }
-
- public void stop()
- {
- }
-
-
-
-
- // TODO: Place additional applet Code here
-
- }
-