Package net.sourceforge.squirrel_sql.plugins.refactoring.gui.util

Examples of net.sourceforge.squirrel_sql.plugins.refactoring.gui.util.NumberDocument


    JLabel incrementLabel = getBorderedLabel(i18n.INCREMENT_LABEL + " ", emptyBorder);
    pane.add(incrementLabel, getLabelConstraints(c));

    _incrementField = new JTextField();
    _incrementField.setPreferredSize(mediumField);
    _incrementField.setDocument(new NumberDocument());
    pane.add(_incrementField, getFieldConstraints(c));

    // Start
    JLabel startLabel;
    if (_dialogMode == MODIFY_MODE)
    {
      startLabel = getBorderedLabel(i18n.RESTART_LABEL + " ", emptyBorder);
    } else
    {
      startLabel = getBorderedLabel(i18n.START_LABEL + " ", emptyBorder);
    }
    pane.add(startLabel, getLabelConstraints(c));

    _startField = new JTextField();
    _startField.setPreferredSize(mediumField);
    _startField.setDocument(new NumberDocument());
    pane.add(_startField, getFieldConstraints(c));

    // Minimum
    JLabel minimumLabel = getBorderedLabel(i18n.MINIMUM_LABEL + " ", emptyBorder);
    pane.add(minimumLabel, getLabelConstraints(c));

    _minimumField = new JTextField();
    _minimumField.setPreferredSize(mediumField);
    _minimumField.setDocument(new NumberDocument());
    pane.add(_minimumField, getFieldConstraints(c));

    // Maximum
    JLabel maximumLabel = getBorderedLabel(i18n.MAXIMUM_LABEL + " ", emptyBorder);
    pane.add(maximumLabel, getLabelConstraints(c));

    _maximumField = new JTextField();
    _maximumField.setPreferredSize(mediumField);
    _maximumField.setDocument(new NumberDocument());
    pane.add(_maximumField, getFieldConstraints(c));

    // Cache
    JLabel cacheLabel = getBorderedLabel(i18n.CACHE_LABEL + " ", emptyBorder);
    pane.add(cacheLabel, getLabelConstraints(c));

    _cacheField = new JTextField();
    _cacheField.setPreferredSize(mediumField);
    _cacheField.setDocument(new NumberDocument());
    pane.add(_cacheField, getFieldConstraints(c));

    // Cycled
    JLabel cycledLabel = getBorderedLabel(i18n.CYCLED_LABEL + " ", emptyBorder);
    pane.add(cycledLabel, getLabelConstraints(c));
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.refactoring.gui.util.NumberDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.