I 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
Awesome
Thank you. I’m back from vacation, so you can expect more videos very soon
Derek, Where would I find the .png files for this lesson?.
I don’t know what I did with them? I’ll see if I can find them
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!
I’m sorry, but I’m not sure what files you are referring to. I get over 100 emails a day, so it is very hard to keep track of them all. Sorry about that.
Hi Drek,
Thanks for your greate tutorials. They some of my hope for my future life.
Hi
You’re very welcome 🙂 I’m glad you are enjoying them
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.
Are you getting any errors? Sorry it took so long to get back to you.