Example usage for Java javax.swing.text NumberFormatter fields, constructors, methods, implement or subclass
The text is from its open source code.
NumberFormatter(NumberFormat format) Creates a NumberFormatter with the specified Format instance. | |
NumberFormatter() Creates a NumberFormatter with the a default NumberFormat instance obtained from NumberFormat.getNumberInstance() . |
void | setAllowsInvalid(boolean allowsInvalid) Sets whether or not the value being edited is allowed to be invalid for a length of time (that is, stringToValue throws a ParseException ). |
void | setCommitsOnValidEdit(boolean commit) Sets when edits are published back to the JFormattedTextField . |
void | setFormat(Format format) Sets the format that dictates the legal values that can be edited and displayed. |
void | setMaximum(Comparable> max) Sets the maximum permissible value. |
void | setMinimum(Comparable> minimum) Sets the minimum permissible value. |
void | setValueClass(Class> valueClass) Sets that class that is used to create new Objects. |