Running Applets in BlueJ and TextPad

BlueJ

Proceed as for a regular Java application by typing in, compiling, and running the application with the following exceptions:

  1. When you choose the class type, choose "Applet" (instead of "Class").
  2. When you run your program, choose "Run Applet", and make sure that "Run Applet in appletviewer" is checked. Pick an appropriate height and width for the window in which the applet will run.

 

TextPad

Proceed as for a regular Java application by typing in, compiling, and running the application with the following exceptions:

  1. When you run the application, choose "Run Java Applet" rather than "Run Java Application".

If there are any html files in the directory in which your program resides, you will be prompted for an html file. Click on the down arrow and choose a file. (If there are no html files in the directory in which your program resides, TextPad will generate a temporary one for you to use.)