Examples of ComboBoxNumberModel


Examples of net.sf.apptools.ui.swing.utils.ComboBoxNumberModel

        gbcon.weighty = 1.0;
      }
      typePanel.add(new JLabel(typeLabelStrings[spinnerno]), gbcon);
      gbcon.insets = new Insets(2, 2, 2, 2);
      gbcon.gridx++;
      typeProbeTargetSpinners[spinnerno] = new JComboBox(new
          ComboBoxNumberModel(0, 0, GUIConstants.maxTagPositions, 1));
      typePanel.add(typeProbeTargetSpinners[spinnerno], gbcon);
      gbcon.gridx--;
      gbcon.gridy++;
    }
   
    //the spacer panel
    gbcon.gridx = 0;
    gbcon.gridy = 0;
    spacerFields = new JTextField[spacerPropertyNames.length];
    spacerPanel.setLayout(new GridBagLayout());
    spacerUseBox = new JCheckBox(spacerUseString);
    spacerUseBox.addActionListener(this);
    gbcon.gridwidth = 2;
    spacerPanel.add(spacerUseBox, gbcon);
    gbcon.gridwidth = 1;
    spacerPosSpinner = new JComboBox(new ComboBoxNumberModel(0, 0,
        GUIConstants.maxTagPositions, 1));
    gbcon.gridy = 1;
    spacerPanel.add(new JLabel(spacerPosString), gbcon);
    gbcon.gridx = 1;
    spacerPanel.add(spacerPosSpinner, gbcon);
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.