Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Edit Mask for text fields without using Pattern or Matching classes
Edit Mask for text fields without using Pattern or Matching classes [message #442921] Wed, 15 September 2004 14:10 Go to next message
ks is currently offline ksFriend
Messages: 3
Registered: July 2009
Junior Member
Is there any way we can set Edit Masks on text fields?. For example an
edit Mask for a Date field of the mask : MM/DD/YY (e.g.12/07/04)and Time
fields, hh:mm(am or pm) (e.g.12:24a OR 08:14p) .I have seen some posts out
here which use the Pattern and Matching classes. However these classes are
only supported in JDK 1.4, for lower versions of java is there some way to
do the edit masking without using these classes in SWT?..I am a newbie to
SWT and would really appreciate some help.
Re: Edit Mask for text fields without using Pattern or Matching classes [message #442995 is a reply to message #442921] Wed, 15 September 2004 19:12 Go to previous messageGo to next message
Charlie Surface is currently offline Charlie SurfaceFriend
Messages: 40
Registered: July 2009
Member
VerifyEvents will allow you to modify text entry as it occurs. However, you
will need to implement the pattern matching behavior yourself.

Charlie

"ks" <friends4u20022002@yahoo.com> wrote in message
news:ci9igj$tsh$1@eclipse.org...
> Is there any way we can set Edit Masks on text fields?. For example an
> edit Mask for a Date field of the mask : MM/DD/YY (e.g.12/07/04)and Time
> fields, hh:mm(am or pm) (e.g.12:24a OR 08:14p) .I have seen some posts out
> here which use the Pattern and Matching classes. However these classes are
> only supported in JDK 1.4, for lower versions of java is there some way to
> do the edit masking without using these classes in SWT?..I am a newbie to
> SWT and would really appreciate some help.
>
Re: Edit Mask for text fields without using Pattern or Matching classes [message #443000 is a reply to message #442995] Wed, 15 September 2004 20:38 Go to previous message
James Leotta is currently offline James LeottaFriend
Messages: 202
Registered: July 2009
Senior Member
Charlie Surface wrote:

> VerifyEvents will allow you to modify text entry as it occurs. However, you
> will need to implement the pattern matching behavior yourself.
>
> Charlie
>
> "ks" <friends4u20022002@yahoo.com> wrote in message
> news:ci9igj$tsh$1@eclipse.org...
>
>>Is there any way we can set Edit Masks on text fields?. For example an
>>edit Mask for a Date field of the mask : MM/DD/YY (e.g.12/07/04)and Time
>>fields, hh:mm(am or pm) (e.g.12:24a OR 08:14p) .I have seen some posts out
>>here which use the Pattern and Matching classes. However these classes are
>>only supported in JDK 1.4, for lower versions of java is there some way to
>>do the edit masking without using these classes in SWT?..I am a newbie to
>>SWT and would really appreciate some help.
>>
>
>
>
There is a pluggin that has an edit mask. www.swtworkbench.org It is
called essential data.
Previous Topic:IllegalAccessError from TabFolder (more info)
Next Topic:Antialiased fonts
Goto Forum:
  


Current Time: Fri Apr 26 20:12:06 GMT 2024

Powered by FUDForum. Page generated in 0.03262 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top