Package javax.swing

Examples of javax.swing.JSpinner$NumberEditorFormatter


        protected JLabel nbRowLabel, nbColLabel;

        public GridShapesTemplatePanel(){
            super(resources.getString("gridProperties"));

            nbColInput = new JSpinner(new SpinnerNumberModel(nbColumns,1,20,1));
            nbRowInput = new JSpinner(new SpinnerNumberModel(nbRows,1,20,1));

            nbRowLabel = new JLabel(resources.getString("nbRows"));
            nbColLabel = new JLabel(resources.getString("nbCols"));
           
            nbRowLabel.setFont(new Font("Dialog", 0, 12));
View Full Code Here


        cbxdashes = new JComboBox(StrokeDisplay.defaultstrokes);
        cbxdashes.setRenderer(strokeDisplay);
        lstroke = new JLabel(resources.getString("Stroke"));
        lthickness = new JLabel(resources.getString("Thickness"));
        spiModelThickness = new SpinnerNumberModel(1, 1, 5, 1);
        spithickness = new JSpinner(spiModelThickness);
        cbxdashes.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                if (e.getSource() == cbxdashes) {
                    if (e.getActionCommand().equals("comboBoxChanged")) {
                        Object o = cbxdashes.getSelectedItem();
View Full Code Here

       
        JLabel lhistorySize = new JLabel(resources.getString("HistorySize:"));
        spiModelHistSize = new SpinnerNumberModel();
        spiModelHistSize.setStepSize(new Integer(1));
        spiModelHistSize.setMinimum(new Integer(1));
        spiHistSize = new JSpinner(spiModelHistSize);
        spiHistSize.setPreferredSize(new Dimension(120, 20));
        
        textPropertiesPanel= createTextPropertiesPanel(false, Builtin.resources.getString("History"));
       
        // Create panel
View Full Code Here

   
    portSpinnerModel = new SpinnerNumberModel();
    portSpinnerModel.setMinimum(PortRange.MIN_PORT);
    portSpinnerModel.setMaximum(PortRange.MAX_PORT);
    settingMediator.add(Settings.PORT, portSpinnerModel);
    portSpinner = new JSpinner(portSpinnerModel);
    portSpinner.setEditor(new JSpinner.NumberEditor(portSpinner, "#"));
    portLabel = builder.append("", portSpinner);
    builder.nextLine();
   
    usePassiveCheckBox = new JCheckBox();
    settingMediator.add(Settings.USE_PASSIVE, usePassiveCheckBox);
    builder.append("", usePassiveCheckBox, 3);
    builder.nextLine();

    builder.appendSeparator(i18n.tr("Authentication"));
   
    usernameTextField = new JTextField(Constants.DEFAULT_COLUMNS);
    settingMediator.add(Settings.USERNAME, usernameTextField);
    usernameLabel = builder.append("", usernameTextField, 3);
    builder.nextLine();

    passwordInfoLabel = new JLabel();
    passwordInfoLabel.setForeground(Color.RED);
    builder.append(passwordInfoLabel, 5);
    builder.nextLine();

    passwordTextField = new JPasswordField(Constants.DEFAULT_COLUMNS);
    settingMediator.add(Settings.PASSWORD, passwordTextField);
    passwordLabel = builder.append("", passwordTextField, 3);
    builder.nextLine();
   
    adminModeCheckBox = new JCheckBox();
    settingMediator.add(Settings.ADMIN_MODE, adminModeCheckBox);   
    adminPasswordTextField = new JPasswordField(Constants.DEFAULT_COLUMNS);
    settingMediator.add(Settings.ADMIN_PASSWORD, adminPasswordTextField);
    builder.append(adminModeCheckBox); builder.append(adminPasswordTextField, 3);
    builder.nextLine();

    adminModeCheckBox.addItemListener(new EnableListener(adminPasswordTextField));
   
    builder.appendSeparator(i18n.tr("Status Update"));

    updateOnStartupCheckBox = new JCheckBox();
    settingMediator.add(Settings.UPDATE_ON_STARTUP, updateOnStartupCheckBox);
    builder.append(updateOnStartupCheckBox, 4);
    builder.nextLine();

    autoUpdateCheckBox = new JCheckBox();
    autoUpdateCheckBox.setEnabled(false);
    settingMediator.add(Settings.DO_AUTO_UPDATE, autoUpdateCheckBox);
    // the auto updater is error prone, therefore it has been disabled
    // until fixed
    //builder.append(autoUpdateCheckBox, 4);
    builder.nextLine();
   
    autoUpdateIntervalModel = new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 30);
    settingMediator.add(Settings.AUTO_UPDATE_INTERVAL, autoUpdateIntervalModel);
    autoUpdateIntervalSpinner = new JSpinner(autoUpdateIntervalModel);
    autoUpdateIntervalSpinner.setEditor(new JSpinner.NumberEditor(autoUpdateIntervalSpinner, "# s"));
    //autoUpdateIntervalLabel = builder.append("", autoUpdateIntervalSpinner);
    autoUpdateIntervalLabel = new JLabel();
    builder.nextLine();   
View Full Code Here

    settingMediator.add(Settings.MONITOR_PATH, monitorPathFileChooserPanel.getTextField());
    monitorPathLabel = builder.append("", monitorPathFileChooserPanel, 3);
    builder.nextLine();

    monitorPathIntervalModel = new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 30);
    monitorPathIntervalSpinner = new JSpinner(monitorPathIntervalModel);
    monitorPathIntervalSpinner.setEditor(new JSpinner.NumberEditor(monitorPathIntervalSpinner, "# s"));
    monitorPathIntervalLabel = builder.append("", monitorPathIntervalSpinner);
    builder.nextLine();   
   
    monitorPathCheckBox.addItemListener(new EnableListener(monitorPathFileChooserPanel, monitorPathIntervalSpinner));
View Full Code Here

    dateLabel = builder.append("", dateNowRadionButton);
    builder.nextLine();
   
    dateLaterRadionButton = new JRadioButton();
    dateModel = new SpinnerDateModel();
    final JSpinner dateSpinner = new JSpinner(dateModel);
    dateSpinner.setEnabled(false);
    dateLaterRadionButton.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent e) {
        dateSpinner.setEnabled(dateLaterRadionButton.isSelected());
      }     
    });
    builder.append("", dateLaterRadionButton, dateSpinner);
    builder.nextLine();
   
View Full Code Here

    JComboBox resolutionComboBox = new JComboBox(resolutionModel);
    resolutionLabel = builder.append("", resolutionComboBox, 2);
    builder.nextLine();

    priorityModel = new SpinnerNumberModel(0, 0, 255, 1);
    prioritySpinner = new JSpinner(priorityModel);
    priorityLabel = builder.append("", prioritySpinner);
    builder.nextLine();
   
    maxTriesSpinner = new JSpinner(new SpinnerNumberModel(1, 1, 255, 1));
    maxTriesLabel = builder.append("", maxTriesSpinner);
    builder.nextLine();
   
    maxDialsSpinner = new JSpinner(new SpinnerNumberModel(1, 1, 255, 1));
    maxDialsLabel = builder.append("", maxDialsSpinner);
    builder.nextLine();
   
    paperModel = new DefaultComboBoxModel();
    JComboBox paperComboBox = new JComboBox(paperModel);
View Full Code Here

      builder.nextLine();   
     
      portSpinnerModel = new SpinnerNumberModel();
      portSpinnerModel.setMinimum(PortRange.MIN_PORT);
      portSpinnerModel.setMaximum(PortRange.MAX_PORT);
      portSpinner = new JSpinner(portSpinnerModel);
      portSpinner.setEditor(new JSpinner.NumberEditor(portSpinner, "#"));
      portLabel = builder.append("", portSpinner);
      builder.nextLine();
     
      usernameDescriptionLabel = new JLabel();
View Full Code Here

        setFirstRow(firstRowPanel1, gbc, nameLabel1, nameField1,
                durationLabel1, durationField1);
        // second row
        percentCompleteLabel1 = new JLabel(language.getText("advancement")); // Progress
        SpinnerNumberModel spinnerModel = new SpinnerNumberModel(0, 0, 100, 1);
        percentCompleteSlider = new JSpinner(spinnerModel);

        secondRowPanel1 = new JPanel(flowL);
        secondRowPanel1.add(percentCompleteLabel1);
        // secondRowPanel1.add(percentCompleteField1);
        secondRowPanel1.add(percentCompleteSlider);
View Full Code Here

        // vb.add(new JPanel());


        // webdav time block
        JPanel webDavPanel = new JPanel(new BorderLayout());
        webDavPanel.add(spLockDAV = new JSpinner(new SpinnerNumberModel(240, 1,
                1440, 1)), BorderLayout.WEST);
        webDavPanel.add(new JLabel(language.getText("lockDAV")),
                BorderLayout.CENTER);
        vb.add(webDavPanel);
        vb.add(new JPanel());
View Full Code Here

TOP

Related Classes of javax.swing.JSpinner$NumberEditorFormatter

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.