Search This Blog

Saturday, 30 July 2016

Tic-Tac-Toe Application in Java using Applet

The application runs with all the rules and it also checks which player (Blue or Red) wins. Moreover it keeps a record of the number of games won by the players. After each game the result is shown and the next game starts automatically with the score of all the previous games. In addition to the the buttons, the application also maintains an 3x3 array in order to check if a game is won or  drawn.


View Source Code
Download class file

Some of the screen shots of the application are given below.







Wednesday, 27 July 2016

Typing Speed Calculator Application in Java using Applet

This application calculates your typing speed. A text is shown and the amount of text you can copy in 1 minute determines your typing speed.

This application is unique as instead of using the traditional methods of using threads in applets, I have used the concept of inner classes. There are two inner classes in the main class. One class called SetFrame class extends from Frame class and the other class called Timer class extends from thread class. As the name suggests, SetFrame class creates the applet and the Timer class displays the time left.   

View Source Code
Download class file

Some screen shots of the application are given below.