Entity's Calculator Applet

You need a Java enabled browser to see this applet.

This applet accomplishes a couple of different things: obviously, it is an example of a calculator, but also displays an example of how to multithread an applet. The Time Used display on the left-hand side near the bottom is a thread ran from within the applet itself.

The Current Time display on the right-hand side near the bottom is a thread that was declared in class called "Clock" which extended Thread. It is instantiated within the applet and the overridden run method inside of the Clock class obtains the current time for display.

The calculator itself has been set up to handle keyboard events, but as far as the program is concerned the focus must be on the applet in general -- the keystrokes won't work otherwise. To do this, click on any empty area of the applet.


I've gotten some very interesting emails from people regarding my calculator... one person suggested that a hex calculator was the way to go, another guy told me that using Java Swing might be more efficient, and a few that informed me that my order of operations was not quite right. I wish I had time to play around with it a little bit more, cause I'd like to see just how funky I could make it, but unfortunately this year of school is very demanding.

On an up note, a dude from Germany told me that he wanted to use my calculator as an example in the Java course he was teaching, and he even asked me to take this page down for the duration of that assignment so that the students couldn't cheat off of my source code! :) I've really appreciated your comments and suggestions, if you have any more, please email me.

Source code is available here.


Expansion has been a long time in the making...