Examples of LimitedDocument


Examples of jp.go.aist.sot.client.gui.LimitedDocument

        setBorder(border);

        termTitle = new JLabel(mh.getMessage("term_title"));
        termTitle.setForeground(GUIConstants.TITLE_FOREGROUND_COLOR);

        daysField = new NumericField(new LimitedDocument(3), null, 3);
        daysField.setHorizontalAlignment(SwingConstants.RIGHT);
        model = daysField.getDocument();
        model.addDocumentListener(new DocumentAdapter(daysField, controller));
        daysUnitTitle = new JLabel(mh.getMessage("days_unit_title"));
        daysUnitTitle.setForeground(GUIConstants.TITLE_FOREGROUND_COLOR);

        hoursField = new NumericField(new LimitedDocument(3), null, 3);
        hoursField.setHorizontalAlignment(SwingConstants.RIGHT);
        model = hoursField.getDocument();
        model.addDocumentListener(new DocumentAdapter(hoursField, controller));
        hoursUnitTitle = new JLabel(mh.getMessage("hours_unit_title"));
        hoursUnitTitle.setForeground(GUIConstants.TITLE_FOREGROUND_COLOR);
View Full Code Here

Examples of net.sf.robocode.ui.util.LimitedDocument

    return descriptionLabel;
  }

  public JTextArea getDescriptionArea() {
    if (descriptionArea == null) {
      LimitedDocument doc = new LimitedDocument(3, 72);

      descriptionArea = new JTextArea(doc, null, 3, 72);
      doc.addDocumentListener(eventHandler);
    }
    return descriptionArea;
  }
View Full Code Here

Examples of net.sf.robocode.ui.util.LimitedDocument

    return versionLabel;
  }

  public JTextField getVersionField() {
    if (versionField == null) {
      LimitedDocument doc = new LimitedDocument(1, 10);

      versionField = new JTextField(doc, null, 10);
      doc.addDocumentListener(eventHandler);
    }
    return versionField;
  }
View Full Code Here

Examples of net.sf.robocode.ui.util.LimitedDocument

    return descriptionLabel;
  }

  public JTextArea getDescriptionArea() {
    if (descriptionArea == null) {
      LimitedDocument doc = new LimitedDocument(3, 72);

      descriptionArea = new JTextArea(doc, null, 3, 72);
      doc.addDocumentListener(eventHandler);
    }
    return descriptionArea;
  }
View Full Code Here

Examples of net.sf.robocode.ui.util.LimitedDocument

    return versionLabel;
  }

  public JTextField getVersionField() {
    if (versionField == null) {
      LimitedDocument doc = new LimitedDocument(1, 10);

      versionField = new JTextField(doc, null, 10);
      doc.addDocumentListener(eventHandler);
    }
    return versionField;
  }
View Full Code Here

Examples of net.sf.robocode.ui.util.LimitedDocument

    return webpageHelpLabel;
  }

  public JTextField getTeamNameField() {
    if (teamNameField == null) {
      LimitedDocument doc = new LimitedClassnameDocument(1, 32);

      teamNameField = new JTextField(doc, null, 32);
      doc.addDocumentListener(eventHandler);
    }
    return teamNameField;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.