Jump to content

character lengths

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
travy92

travy92

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
Hello everyone, i've decided to learn some Java. I'm a little stuck so any help would be appreciated!

Well i need to know how to make the character length of a text box limited to 2.
So the person can only type in 2 characters.

P.S - If any of you know how to make it so the person can only type in letters and not numbers (or vice versa) it would be good :D.

Thank you.
[SIGPIC]C:\Users\Travis\Desktop\Image Converter\Knight1.bmp[/SIGPIC]

#2
travy92

travy92

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
OMFG LOL Sorry guys false alarm.... I didn't read my code right!..
Problem solved using "maxlength=2" <-- i found it already in my code.. But the maxlength was 3..... Sorry guys !
[SIGPIC]C:\Users\Travis\Desktop\Image Converter\Knight1.bmp[/SIGPIC]