Java Exercise 8

Description:

Stand alone running version of the deterministic Compton Effect Applet.
It uses a frame in which the original applet is run.
It also loads the photon initial energy from a text file.

Run with command:
java Compton parameter.cpt

Java source code:

AppletFrame.java - Holds the frame in which the applet is run
Compton.java - Holds the original Compton Applet plus an extra main function to start the frame

Parameter file:

parameter.cpt - Text file with the initial photon energy

Java compiled classes:

AppletFrame.class
AppletFrame$1.class
Compton.class
Particle.class
Electron.class
Photon.class

.bat file for running under MS Windows

compton.bat

As you can see, you can still run the application as an applet ...

Back to Physics Simulation Personal Course Page