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

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

Introduction

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

The text is from its open source code.

Constructor

DateFormatter(DateFormat format)
Returns a DateFormatter configured with the specified Format instance.
DateFormatter()
This is shorthand for new DateFormatter(DateFormat.getDateInstance()).

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(DateFormat format)
Sets the format that dictates the legal values that can be edited and displayed.
voidsetOverwriteMode(boolean overwriteMode)
Configures the behavior when inserting characters.
ObjectstringToValue(String text)
Returns the Object representation of the String text.