Article View: borland.public.jbuilder.java.swing
Article #8250Re: Masked edit control?
From: Bernhard Mandl
Date: Fri, 06 Oct 2000 00:00
Date: Fri, 06 Oct 2000 00:00
28 lines
1563 bytes
1563 bytes
I recently discovered his in ref.pdf: ItemEditMask interface dx.text package Implemented by com.borland.dx.text.ItemEditMaskStr The ItemEditMask interface provides an open interface for character-by-character input validation. There is an ItemEditMaskStr implementation which uses a control string to validate characters. For example, the edit mask "(999)000-0000;0;_;" would indicate: . The template the user would see on field entry would be "(___)___-____ . Unfilled characters will be shown by "_" (underscore) . Literals will be removed on output, so (408)555-1234 would become 4085551234 . Blank characters will be stripped, so (___)555-1234 would become 5551234 Bernhard "Shoban Jeyaraj" <shobanjeyaraj@yahoo.com> wrote in message news:39dc3bab.351511406@192.168.27.10... > Hi! > > Is there some sort of a masked edit control in swing where I can > specify a mask like XXX-XXX-XXXX which means that it should accept > three groups of characters separated by '-'? > > Thanks in advance, > Shoban Jeyaraj
Technical Details
Message-ID:
<39de32c8_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39dc3bab.351511406@192.168.27.10>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7b9406905c7722ae X-Google-Attributes: gid111d45,public From: "Bernhard Mandl" <b.mandl@eunet.at> Subject: Re: Masked edit control? Date: 2000/10/06 Message-ID: <39de32c8_1@dnews> X-Deja-AN: 678428571 References: <39dc3bab.351511406@192.168.27.10> X-Trace: 6 Oct 2000 13:15:04 -0800, 195.230.46.158 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400