Example usage for javax.swing.text MaskFormatter subclass-usage

List of usage examples for javax.swing.text MaskFormatter subclass-usage

Introduction

In this page you can find the example usage for javax.swing.text MaskFormatter subclass-usage.

Usage

From source file Main.java

class TimeFormatter extends MaskFormatter {
    public TimeFormatter() {
        try {
            setMask("##/##/####");
            setPlaceholderCharacter('0');
            setAllowsInvalid(false);