Java javax.swing.text NumberFormatter fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.text NumberFormatter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.text NumberFormatter.

The text is from its open source code.

Constructor

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().

Method

voidsetAllowsInvalid(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).
voidsetCommitsOnValidEdit(boolean commit)
Sets when edits are published back to the JFormattedTextField.
voidsetFormat(Format format)
Sets the format that dictates the legal values that can be edited and displayed.
voidsetMaximum(Comparable max)
Sets the maximum permissible value.
voidsetMinimum(Comparable minimum)
Sets the minimum permissible value.
voidsetValueClass(Class valueClass)
Sets that class that is used to create new Objects.