Spinner component = (Spinner)getComponent(finder, Spinner.getSpinnerMatcherByModel(SpinnerNumberModel.class));
return new NumberSpinner(component.getAwtComponent());
}
public NumberSpinner getNumberSpinner(String componentName) {
ComponentMatcher matcher =
and(Spinner.getSpinnerMatcherByModel(SpinnerNumberModel.class),
getMatcherFromName(componentName));
Spinner component = (Spinner)getComponent(finder, matcher);
return new NumberSpinner(component.getAwtComponent());
}