CST2641 Advanced Java I
Lab Week 7


Exercises

Exercise 10.1

For this exercise you are going to build upon the program that you did for Exercise 9.1, the combination safe.

Modify your program so that without any code modifications, it runs as both an applet and an application.

Add the ability to pass information to the program if it is run as an applet in a browser.  Pass the initial combination to the applet via the <param name="combination" value="123"/>  Test this in a browser.

Package the entire program (all the class files) and any resources the program needs (all  the image files, etc.) into a JAR file.  This needs to be a self-running JAR file.  You should be able to run this program both stand alone and also be able to launch this program as an applet in a web browser.

My example.