Example usage for Java javax.swing.text DateFormatter fields, constructors, methods, implement or subclass
The text is from its open source code.
DateFormatter(DateFormat format) Returns a DateFormatter configured with the specified Format instance. | |
DateFormatter() This is shorthand for new DateFormatter(DateFormat.getDateInstance()) . |
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(DateFormat format) Sets the format that dictates the legal values that can be edited and displayed. |
void | setOverwriteMode(boolean overwriteMode) Configures the behavior when inserting characters. |
Object | stringToValue(String text) Returns the Object representation of the String text . |