use of javax.swing.text.NumberFormatter in project mzmine2 by mzmine.
the class RangeComponent method setNumberFormat.
public void setNumberFormat(NumberFormat format) {
DefaultFormatterFactory fac = new DefaultFormatterFactory(new NumberFormatter(format));
minTxtField.setFormatterFactory(fac);
maxTxtField.setFormatterFactory(fac);
}
Aggregations