|
|
I can't find documentation for the JClass components bundled with JBuilder. How do I use the JCTextField component? |
| John McGrath writes:
Here is some code to set up a masked text field using JClass Field: JCTextField textField = new JCTextField();
JCStringValidator validator = new JCStringValidator();
validator.setMask( "(@@@) @@@-@@@@" );
validator.setPlaceHolderChars( "(000) 000-0000" );
validator.setAllowNull( false );
textField.setValueModel( new StringValueModel() );
textField.setValidator( validator );
The following mask characters may be used: # Any digit, minus sign, comma, decimal point, or plus sign.
@ Any digit.
H Any hexadecimal digit.
U Any alphabetic character. Lower case characters will be converted
to upper case.
L Any alphabetic character. Upper case characters will be converted
to lower case.
A Any alphabetic character. No case conversion.
* Any character.
^ Any alphanumeric character, that is, any character from the set
{0-9a-zA-Z}.
\\ The next character that follows is to be treated as a literal,
even if it is one of the above characters.
2001-May-03 6:30pm gyles19@visi.com | |
| [Append to This Answer] | |
| 2002-Apr-27 11:56am |
| Previous: |
|
| ||||||||
|
Java Community
Java Tools |
Code Central JB OpenTools |
Community Recent Threads |
Borland Chat Chat FAQ |
||||||||||||||
|
Feature Matrices 3.0 | 3.5 | 4.0 5.0 | 6.0 | 7.0 |
Shop for JBuilder |
JBuilder Downloads and reg keys |
Report Piracy | ||||||||||||||
|
Online Manuals 4.0 | 5.0 | 6.0 7.0 |
Borland DevSupport's Bug/RFE Form Quality Central Client |
JB Patches & Updates |
JBuilder FAQs TIs | ||||||||||||||
|
JBuilder Newsgroups |
Tamaracka's News Archive |
Mr. Haki's JBuilder Machine |
JGuru's JBuilder FAQ |
||||||||||||||
|
Sun's Bug Parade |
|||||||||||||||||
|
|||||||||||||||||