[ Overview ] [ User's Guide ] [ Tutorial ] [ Samples ] [ Requirements ] [ Limitations ] [ API Documentation ]


MaskedTextField Bean User's Guide

Mask Characters

The following list shows the pre-defined default mask characters of the MaskedTextField:

The user of the MaskedTextField is not limited to the default mask characters, however. The programmer can augment or completely replace the mask characters for each MaskedTextField used. The mask characters are set using the setMaskCharacters() method.

Mask characters are created with the following parameters:

Common Uses

The following table lists the most common uses of the MaskedTextField Bean.

Description Mask Direction Allow Invalid Shift Text Move Cursor
Phone Number "(###) ###-####" InputDirection.RIGHT false true true
[(1|3_) ___-____] -> [(12|3) ___-____]
Numeric Entry "$####.##" InputDirection.LEFT false true false
[$____.1|3] -> [$___1.2|3]

 


Copyright Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved