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

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

Introduction

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

Usage

From source file MyFormatter.java

class MyFormatter extends DefaultFormatter {

    public MyFormatter() {
        super();
    }

From source file MyFormatter.java

class MyFormatter extends DefaultFormatter {

    public MyFormatter() {
        super();
    }

From source file RegexPatternFormatter.java

public class RegexPatternFormatter extends DefaultFormatter {

    protected java.util.regex.Matcher matcher;

    public RegexPatternFormatter(java.util.regex.Pattern regex) {
        setOverwriteMode(false);

From source file CombinationFormatter.java

public class CombinationFormatter extends DefaultFormatter {

    public CombinationFormatter() {
        setOverwriteMode(false);
    }

From source file wilos.presentation.assistant.view.panels.HourFormat.java

public class HourFormat extends DefaultFormatter {

    @Override
    public Object stringToValue(String string) throws ParseException {
        // TODO Auto-generated method stub 
        Long retour = (long) 0;

From source file Main.java

class MultiFormatter<F extends JFormattedTextField.AbstractFormatter> extends DefaultFormatter {

    private List<F> formatters;

    public MultiFormatter(F... formatters) {
        addFormatters(formatters);

From source file com.anrisoftware.prefdialog.miscswing.filetextfield.FileDisplayFormatter.java

/**
 * Custom display formatter for a file field. It will trim the file path
 * according to the current viewable characters of the text field.
 * <p>
 * The text field need to set the {@link FontMetrics} by calling the
 * {@link FileDisplayFormatter#setFontMetrics(FontMetrics, int)} method.

From source file RegexFormatter.java

/**
 * A regular expression based implementation of AbstractFormatter.
 */
class RegexFormatter extends DefaultFormatter {
    private Pattern pattern;

From source file FormatTest.java

/**
 * A formatter for 4-byte IP addresses of the form a.b.c.d
 */
class IPAddressFormatter extends DefaultFormatter {
    public String valueToString(Object value) throws ParseException {
        if (!(value instanceof byte[]))