Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » MaskFormatter AutoSkip
MaskFormatter AutoSkip [message #40475] Tue, 25 September 2007 22:48
Eclipse UserFriend
Originally posted by: tim.mehrens.fiserv.com

I am using the following code to set up a Text widget using the
MaskFormatter for a SSN;

txtSSNDN42 = new FormattedText(grpWorker, SWT.CENTER | SWT.BORDER);
txtSSNDN42.setFormatter(new MaskFormatter("###-##-####"));
txtSSNDN42.getControl().setBounds(570, 40, 163, 25);

On the other Text widget on my form to get them to autoskip I assigned a
listener to them and once the Text length was exceeded I use setFocus to
move it to the next text widget. The problem I am having using the
MaskFormatter is it is always going to contain a length of eleven. Does
anyone have any suggestions on how to set this up to autoskip?

Thanks in Advance,

Tim
Previous Topic:PGroup
Next Topic:MaskFormatter AutoSkip
Goto Forum:
  


Current Time: Thu Sep 19 15:34:25 GMT 2024

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

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

Back to the top