Sunday, August 22, 2010

JAVA : Typing Test

Typing Test 
Manoj Tiwari


How fast can you type? Find out with Typing Test JAVA application.
Select a time and text to type. After completing the test, you will see your typing speed, accuracy and net speed.




!!!!!!!!!!....Applet may take some time to load....!!!!!!!!!
Typing Test  is a Java program that tests your typing speed. You get a number of tests to choose from. Typing Test program counts the number of total words and worng words and on basis of that gives result.


Instructions

1. Choose a Test from List. 
2. Choose the time for test.
3. Click "Start" Button.
4. Typing test will appear. Time will start when you start typing.
5. A mistake done once can not be corrected (i.e. you cannot correct the Word once you hit the space bar).
6. Keep on typing until the time passes or hit the Finish Button.
7. Your Result will be displayed.

Scoring

Typing Test program will count the number of the correctly typed words and wrong typed word. If you mistype a word, it will be highlighted. Result has three parts 
1. Gross speed(total number of words typed divide by total time of test) 
2. Accuracy (Percentage of Correctly typed word out of  total number of words typed )
3. Net Speed (number of words correctly typed divide by total time of test)


Files

TestPage.java and TestPageapp.java:-
TestPage.java is the main class for running Typing Test as System application and TestPageapp.java is the main class for running Typing Test as Web pages(Applet).
These classes have the code for Making a window, setting Look and Feel and have two functions startTest() which runs when test starts and endTest() which runs when test end.

MainPage.java:-
MainPage.java is the first frame that displays  when application starts.This page contains a List of Test to choose form and a Combo Box to choose time for test.

TypingTime.java:-
TypingTime.java is file that has code for running time test starts. It has three function getTestTime() that gives the total time taken for test and getMin() that gives the minutes of test's time left and getSec() that gives the seconds of test's time left.

FileTextPage.java:-
FileTestPage.java is the class that has most of the coding. It adds two JTextArea on the frame in which one contains the text from the file and in other JTextArea user will type that text.
This file has the following functions in coding:
fileInput():-  Load text from file to JTextArea.
underliine():- Gets and the next word to be typed and highlight that word in TextArea.
check():- Checks weather the word user type matches with the word which has to be typed.
backSpace():- Allows user to only correct currently typing word(cannot go beyond the space).
result():- Calculate and Show Result.

Download Files Here:



8 comments:

  1. hey manoj...my name is geo..i am a University student from US...i need a small help from you..i am developing kinda similar application but not as an applet..its not this complicated..just two text areas...textArea1 has predefined text...and textArea2 for input...as a i type into textArea2 it should check the strings from textArea1 and show if there is any error...show red for error...its not this complicated..so if you can help me that would be so grateful of you..
    my email id is geomathewv@yahoo.com
    thank you

    ReplyDelete
  2. * Always prefer for natural weight reduction - There are plenty of diet regime supplements available which contain synthetic
    chemical substances which could create really poor
    and unhealthy side-effects. After talking to folks who
    suffer from used this weight loss supplement with a regular basis, they have been shown to be losing ten lbs.
    8.

    My homepage: Phen375 Slimming Supplement

    ReplyDelete
  3. Іf уou are seгiоus about gеtting Meratol to lose some weight
    tо havе your sexy lοok, then you can chеcκ on the online stores.
    The Meгatol diet pіlls are nonetheless reported
    to be safe and sound and may well bе used by
    diabetеs sufferers. It's also advisable to maintain it from the reach of children, a breastfeeding mother or perhaps a mother must also avoid using the drug.

    Here is my web-site - buy meratol

    ReplyDelete
  4. Link is not working.... Can you please fix it?

    ReplyDelete