i've another question for the forum's expert!
i've the necessity to use a text field with the capacity to accept only numeric chars . SWT Designer can do that ???
thanx
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
hellfire wrote:i've the necessity to use a text field with the capacity to accept only numeric chars . SWT Designer can do that ?
Text field = new Text(group, SWT.BORDER);
field.addVerifyListener(new VerifyListener() {
public void verifyText(VerifyEvent e) {
e.doit = Character.isDigit(e.character);
}
});
hellfire wrote:it would be usefull including an enanched version of SWT text component with this capability in the SWT designer next release
Users browsing this forum: No registered users and 1 guest