|
|
This assignment involves advanced AWT components such as frames and menus. Briefly, your task is to implement two menus in an existing application. This application simulates a Netscape browser window. Since applets can not access the underlying file system (for security reasons), a
program that simulates Netscape Navigator must be written as a Java application.
For the purposes of this assignment, however, we have written our Netscape simulator so
that it runs as both an application and an applet. (The applet
requires a Only three menus have been implemented in our simulator: the File menu, the Options menu, and the Help menu. Of these three, only the File menu has any working commands whatsoever (New and Exit).
<HTML> <BODY BGCOLOR=white> <APPLET CODE="Netscape.class" WIDTH=200 HEIGHT=100></APPLET><P> <A HREF="Netscape.java">Netscape.java</A> </BODY> </HTML> Netscape.java and test it with appletviewer. Also test it at the
command line. Netscape.java . Your menus
should mimic the corresponding menus in Netscape Navigator 3.0. Be sure to include
keyboard shortcuts in your menus. Netscape.html and Netscape.java
(and any other source files) on your homework page. |