Java Video Tutorial 40

Java JAppletI have received the following requests many times over the past week. Make a Java JApplet Tutorial. Show me how to turn your Personality Test into a Java application.

So, in this tutorial I will do both! I also provide a review of many things I’ve covered, while providing a few new tricks.

All of the code follows the video and it is heavily commented. If you struggle with learning anything the code will help you through.

If you like videos like this tell Google [googleplusone]

Sharing is great [nttfblike]

Execute the JApplet in a Browser

In the tutorial, I was executing the Java Applet in the Applet viewer. To execute it in a browser you must do the following in a terminal javac JavaLesson40.java

That creates a Java class file. Then use the html code below to load the applet in a browser. You may have to enable Java in your browser of choice.

Code from the Video

10 thoughts on “Java Video Tutorial 40”

      1. I suppose you never found those files? 🙂

        Also, great tutorial, even if I have to pause all the time just to catch up on your faster-than-warpspeed writing!

  1. I’ve got 16 png’s of the different personality types in the same directory as the html file and the .class file but it’s not showing up in applet viewer or browser plugins. I’m on a windows machine so could you verify my directory location code? Thank you in advance for your help. I’m so grateful for your passion to help others.

Leave a Reply

Your email address will not be published. Required fields are marked *