Package javax.swing

Examples of javax.swing.JSpinner$DateEditor


    public UniformParametersPanel()
    {
        JPanel wrapper = new JPanel(new SpringLayout());
        wrapper.add(new JLabel("Minimum: "));
        wrapper.add(new JSpinner(minNumberModel));
        wrapper.add(new JLabel("Maximum: "));
        wrapper.add(new JSpinner(maxNumberModel));
        SpringUtilities.makeCompactGrid(wrapper, 4, 1, 6, 6, 6, 6);
        add(wrapper, BorderLayout.NORTH);
    }
View Full Code Here


                final JDialog dlg = new JDialog((Dialog) null, "create new partition", true);
                final SpinnerNumberModel spn = new SpinnerNumberModel(10, 1, dev.getSize(), 10);
                dlg.getContentPane().setLayout(new FlowLayout());
                dlg.getContentPane().add(new JLabel("size : "));
                dlg.getContentPane().add(new JSpinner(spn));
                JButton btn = new JButton("Add partition");
                btn.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        long size = spn.getNumber().longValue();
                        try {
View Full Code Here

  private static final long serialVersionUID = 1831878850976738056L;
  private final JSpinner theSpinner;

  public ConfigSpinner(Integer value) {
    super(BoxLayout.X_AXIS);
    add(theSpinner = new JSpinner());
    theSpinner.setValue(value);
    add(Box.createHorizontalGlue());
    theSpinner.setBorder(BorderFactory.createLoweredBevelBorder());
  }
View Full Code Here

    private void initComponents() {
        JLabel jLabel1 = new JLabel();
        jTextFieldHost = new JTextField();
        jButtonConnect = new JButton();
        JLabel jLabel3 = new JLabel();
        jSpinnerWidth = new JSpinner();
        JLabel label5 = new JLabel();
        jSpinnerChars = new JSpinner();
        checkBoxContinuous = new JCheckBox();
        JLabel jLabel2 = new JLabel();
        jTextFieldPort = new JTextField();
        jButtonDisconnect = new JButton();
        JLabel jLabel4 = new JLabel();
        jSpinnerHeight = new JSpinner();
        jButtonSendRequest = new JButton();
        imagePanel1 = new ImagePanel();

        //======== this ========
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
View Full Code Here

    setTitle(UtilMessages.getInstance().getString("GuideLineDialog.Position"));
    setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    setModal(true);

    positionSpinner = new JSpinner(new SpinnerNumberModel(ZERO, ZERO, null, ONE));
    unitModel = createUnitModel();

    return createSelectionPane();
  }
View Full Code Here

    setTitle(UtilMessages.getInstance().getString("GridSizeDialog.Title"));
    setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    setModal(true);

    gridSizeSpinner = new JSpinner(new SpinnerNumberModel(ZERO, ZERO, null, STEP_SIZE));
    unitModel = createUnitModel();
    gridDivisionSpinner = new JSpinner(new SpinnerNumberModel(0, 0, Integer.MAX_VALUE, 1));

    super.init();
  }
View Full Code Here

    colorSelectorBox.addActionListener(updateHandler);

    minimumWidth = new JTextField();
    minimumHeight = new JTextField();

    paddingTop = new JSpinner(new SpinnerNumberModel(0, 0, Short.MAX_VALUE, 1));
    paddingLeft = new JSpinner(new SpinnerNumberModel(0, 0, Short.MAX_VALUE, 1));
    paddingBottom = new JSpinner(new SpinnerNumberModel(0, 0, Short.MAX_VALUE, 1));
    paddingRight = new JSpinner(new SpinnerNumberModel(0, 0, Short.MAX_VALUE, 1));

    cornerWidth = new JSpinner(new SpinnerNumberModel(0, 0, Short.MAX_VALUE, 1));
    cornerWidth.addChangeListener(updateHandler);
    cornerHeight = new JSpinner(new SpinnerNumberModel(0, 0, Short.MAX_VALUE, 1));
    cornerHeight.addChangeListener(updateHandler);

    borderEditorPanel = new BorderRenderPanel();
    borderEditorPanel.setMinimumSize(new Dimension(100, 100));
    borderEditorPanel.setPreferredSize(new Dimension(250, 250));
    borderEditorPanel.setMaximumSize(new Dimension(250, 250));
    borderEditorPanel.getSelectionModel().addBorderSelectionListener(new BorderSelectionUpdateHandler());

    borderWidth = new JSpinner(new SpinnerNumberModel(0, 0, Short.MAX_VALUE, 1));
    borderWidth.addChangeListener(updateHandler);

    final JPanel borderCornerCarrier = new JPanel(new GridBagLayout());
    borderCornerCarrier.setBorder(BorderFactory.createTitledBorder(Messages.getString("BorderPropertiesPane.RoundedCorners")));
View Full Code Here

    final SpinnerNumberModel spinnerModel = new SpinnerNumberModel();
    spinnerModel.setMinimum(0);
    spinnerModel.setMaximum(99999);

    timeoutField = new JSpinner(spinnerModel);
    timeoutField.setEditor(new JSpinner.NumberEditor(timeoutField, "#####"));

    rememberSettings = new JCheckBox(Messages.getInstance().getString("RepositoryLoginDialog.RememberTheseSettings"), true);

    urlCombo.setEditable(true);
View Full Code Here

    init();
  }

  protected void init()
  {
    dataRowsField = new JSpinner(new SpinnerNumberModel(5, 1, 1000, 1));
    headerRowsField = new JSpinner(new SpinnerNumberModel(5, 1, 1000, 1));
    colsField = new JSpinner(new SpinnerNumberModel(5, 1, 1000, 1));

    setTitle("Insert Table ..");
    super.init();
  }
View Full Code Here

    valueTypeComboBox.setRenderer(new ClassListCellRenderer());
    valueTypeComboBox.getModel().addListDataListener(typeSelectionHandler);

    visibleItemsLabel = new JLabel(Messages.getString("ParameterDialog.VisibleItems"));

    visibleItemsTextField = new JSpinner(new SpinnerNumberModel(0, 0, 50000, 1));

    displayFormulaLabel = new JLabel(Messages.getString("ParameterDialog.DisplayFormula"));

    displayFormulaField = new FormulaEditorPanel();
    displayFormulaField.setEditorDataModel(this);
View Full Code Here

TOP

Related Classes of javax.swing.JSpinner$DateEditor

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.