2014年2月11日星期二

JAVA CODE SPOT : Typing Test

Typing Test  is a Java program that tests your typing speed. You get a number of tests to choose from. The program counts the number of total words and worng words and on basis of that gives result.
Instructions1. 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.ScoringThe 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)

FilesTestPage.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.Links:
If you want to resolve Windows Dns_error_record_format problem, please try Smartpcfixer. This tool is specialized in fixing How to Fix Windows Dns_error_record_format. Download SmartPCFixer to fix Windows Dns_error_node_is_cname Problems Errors, Dll Errors, Outlook Errors, Spooler Problems, ActiveX Errors, Javascript and Scripting Errors, EXE/DLL/SYS/OCX/INF/VXD Errors, slow sluggish behavior and other common errors.

It is rather not easy for users to find NVidia Drivers Download themselves. To download drivers you should find the Operation System, the exact device model and click on the Download button. All this above procedure can be solved with NVidia Drivers Update Utility. NVidia Driver Download Utility helps you update and download your system drivers with ease. NVidia Drivers Download Utility keeps your system up-to-date. It detects which driver updates are relevant to your computer, and then helps you install them quickly and easily.Nvidia Drivers Utility supports following NVidia devices: Sound card drivers, Printer drivers, Video card drivers, Motherboard drivers, Webcam drivers, Wireless drivers Bluetooth drivers, FireWire drivers, Ethernet drivers, Windows 2000 Drivers, Windows XP drivers, Windows Vista drivers, Windows 7 drivers, USB drivers, Chipset drivers, AC97 drivers and DVD drivers Router drivers.

How to Fix Comres.Dll Missing,How to Fix Enable Javascript On Browser,How to Fix Sgedrv.dll Missing,How to Fix User Profile Service Failed The Logon,How to Fix Windows Crc Error

How to Fix Error 2378,How to Fix Patch Update,How to Fix The User Profile Service failed to logon Error,How to Fix Windows Error 0x8004011d,How to Fix Zsr.Dll Missing

How To Choose A Reputable Seller Of Toner (queens Ny)
Marketing through SMS and Mobile Related Services
Video Converter For Ipad
Computers Articles - Rapid ways to get rid of A0009495.rbf error
Employ a Wedding Planner to Host an Beautiful Theme Wedding

没有评论:

发表评论