Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Java Help

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-2007, 02:51 AM
travy92's Avatar   
travy92 travy92 is offline
Learning Programmer
 
Join Date: Sep 2007
Location: Australia
Age: 15
Posts: 72
Rep Power: 5
travy92 is on a distinguished road
Send a message via MSN to travy92
Question character lengths

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 .

Thank you.
__________________
C:\Users\Travis\Desktop\Image Converter\Knight1.bmp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-02-2007, 02:58 AM
travy92's Avatar   
travy92 travy92 is offline
Learning Programmer
 
Join Date: Sep 2007
Location: Australia
Age: 15
Posts: 72
Rep Power: 5
travy92 is on a distinguished road
Send a message via MSN to travy92
Default

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 !
__________________
C:\Users\Travis\Desktop\Image Converter\Knight1.bmp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert character to Ascii in C++??? fire exit C and C++ 5 05-11-2008 11:13 AM
need help in counting a specify character in a string. lichy Perl 2 06-27-2007 11:03 PM
Escape character ansi colors and ncurses tobs C and C++ 6 02-04-2007 01:11 PM
PERL - Split by Character Cosmet Perl 2 12-30-2006 02:03 PM


All times are GMT -5. The time now is 11:52 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads