Register  |  Login



Question

Status: Open Points: 125 Time: 06:52 - Feb 08, 2010  

araviin92

How do validate a JtextField which will ensure that the maximum numbers typed should only be 8?

Pls help by adding in codes into the codes that i have given below. I need to add in codes to restrict users of a maximum of 8 numbers and no text shld be entered.

if(jTextFieldHpNo.getText().trim().equals(""))
JOptionPane.showMessageDialog(myFrame, "Please enter your Handphone no.");

Categories

Answer Discussion
Tutorials

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

This question has not yet been answered.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Tutorials cannot be submitted until the Answer Discussion is complete.

Submit answers in the Answer Discussion area

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

9829

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4773

5.

PeterNZ

3487

6.

gonzalo

2765

7.

Mason

2520

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es