Kamis, 10 November 2011

"Text Moving" Web Application Using Java Applet (jApplet)

One of the reason why Java becomes a very popular language is because it can run on multiple platforms, be it a PC, mobile phone, or even in a web browser!

In this post, you will see one simple application that can run in a Chrome browser (or any other browser with JRE available) which involves buttons, text, event-handling and of course: the Java Applet form.

The "Text-Moving" Application Running on Chrome

The application above is used with eight different buttons, each representing directions. When each button is pressed, the text on the center will move to the direction the button is representing, so pressing "Up" button will make the text move up, "Down" button to go down, and so on.