MaskFormatter AutoSkip [message #40475] |
Tue, 25 September 2007 22:48 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03526 seconds