Input Validation - Jtext Field in Java (Java 2 SE)

Cancelled

I have already a Java application that takes input of students and stores in a .dat file (in rows and columns). The problem that I am facing right now is that in one of the class files (which is used to enter student details), I have a JTextField element that takes the marks of the students. I want only a certain range of number to be entered in the this field, say between 20 and 30 or between 40 and 60 like that....

Currently I am using to implement this input validation using a key event listener but it is not working properly and giving an error : 'invalid character constant' in eclipse IDE. I don't want to use anything else than this key event listener method as it will mess up the whole code. This is the current piece of code that is giving me trouble. If you think you can implement this without affecting or changing the main program, pls PM me with rates.

// input validation that restricts user to enter specific number range

between 20 and 30

[url removed, login to view](new KeyAdapter() {

public void keyTyped(KeyEvent ke) {

char c = [url removed, login to view]();

if(!([url removed, login to view]() >= '20' && [url removed, login to view]() <= '30')) {

getToolkit().beep();

[url removed, login to view]();

}

}

});

Skills: Java

See more: jtext java, input validation using java, java input field, java input validation, jtext validation, it field, ide number, Validation, student java, problem in java, java SE, java java java, input method, c# code se, invalid character error, validation file, invalid class file, file validation, java ide, java dat files, java students, field validation, problem code java, input field listener, number input

Project ID: #4537526

37 freelancers are bidding on average $49 for this job

eperfections

Java expert ! Please send me ur complete code so that I can run it to see the problem. I can fix it

$34 USD in 1 day
(283 Reviews)
7.0
IMSeriousBidder

Easy task let me help you

$50 USD in 1 day
(67 Reviews)
6.8
dobreiiita

Hi, I can help you with this input validation in Java. Thanks

$54 USD in 1 day
(183 Reviews)
6.5
nani01029x

Let me help you.

$30 USD in 1 day
(41 Reviews)
5.0
thanhhungqb

Dear sir, I am expert in Java, ready to help you. Please check pmb for more details. Thank you

$30 USD in 0 days
(44 Reviews)
4.7
wbslivera

Hello, I am Oracle certified professional java programmer, I can help you. thanks

$30 USD in 0 days
(21 Reviews)
4.1
rakib062

can do it within an hour.

$35 USD in 1 day
(15 Reviews)
4.1
AdelAndCompany

It would be a pleasure to help you.

$45 USD in 1 day
(1 Review)
3.4
DucNA

It's easy with me. Let start !

$30 USD in 0 days
(9 Reviews)
3.3
chinbochen

Hello, I'm a java, jee developer with over 10 years experience. I'm glad to do this for you. thanks.

$44 USD in 3 days
(2 Reviews)
3.2
dipakjadhav08

I have already implemented student management system. I can help you.

$35 USD in 0 days
(10 Reviews)
3.2
BrightSystems

Consider it is done!

$30 USD in 1 day
(4 Reviews)
3.2
romanuwa

Experienced java programmer, please check PMB.

$34 USD in 1 day
(9 Reviews)
3.1
nkigen

I can help you validate your input. I am an experienced JAVA programmer. Looking foward to working with you

$35 USD in 1 day
(4 Reviews)
2.9
jeremiahyoder

I can solve this with no problem. Give me the word and I can get started.

$35 USD in 3 days
(1 Review)
2.0
amorenew

could you send your project files in PM. so i can test it in eclipse ?

$30 USD in 2 days
(1 Review)
1.6
mkhalidhafeez

Please send me. I ll fix it for you.

$30 USD in 0 days
(2 Reviews)
1.4
daniel77598

Easy task, let me help you

$48 USD in 1 day
(0 Reviews)
0.0
deanbannan

I am well versed the use of the swing library and implementation of listeners. I can ensure a solution that meets your requirements including comments to explain the code. I hope you will consider me favourably.

$50 USD in 3 days
(0 Reviews)
0.0
rajyavardhan

I am a new user. I would like to work on your project. I don't know how to bid. Let me try for this validation,

$155 USD in 3 days
(0 Reviews)
0.0