Package javax.swing

Examples of javax.swing.ComboBoxModel


  public PropertyValueSelector(PropertyEditor pe) {
     
    m_Editor = pe;
    Object value = m_Editor.getAsText();
    String tags[] = m_Editor.getTags();
    ComboBoxModel model = new DefaultComboBoxModel(tags) {
      private static final long serialVersionUID = 7942587653040180213L;
     
      public Object getSelectedItem() {
  return m_Editor.getAsText();
      }
View Full Code Here


   * Creates the property iterator panel initially disabled.
   */
  public GeneratorPropertyIteratorPanel() {

    String [] options = {"Disabled", "Enabled"};
    ComboBoxModel cbm = new DefaultComboBoxModel(options);
    m_StatusBox.setModel(cbm);
    m_StatusBox.setSelectedIndex(0);
    m_StatusBox.addActionListener(this);
    m_StatusBox.setEnabled(false);
    m_ConfigureBut.setEnabled(false);
View Full Code Here

        _responsePanel.setResponse(null);
        _responsePanel.setBorder(new TitledBorder("Response"));
        conversationSplitPane.setRightComponent(_responsePanel);
       
        ListModel conversationList = new ConversationListModel(_model.getConversationModel());
        ComboBoxModel requestModel = new ListComboBoxModel(conversationList);
        requestComboBox.setModel(requestModel);
        requestComboBox.setRenderer(new ConversationRenderer(_model.getConversationModel()));
       
        requestComboBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
View Full Code Here

        _model.addPropertyChangeListener(listener);
        _model.addModelListener(listener);
        _fuzzFactory.addPropertyChangeListener(listener);

        ListModel conversationList = new ConversationListModel(_model.getTemplateConversationModel());
        ComboBoxModel requestModel = new ListComboBoxModel(conversationList);
        requestComboBox.setModel(requestModel);
        requestComboBox.setRenderer(new ConversationRenderer(_model.getTemplateConversationModel()));

        requestComboBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
View Full Code Here

        {
            EntityDetailDescriptor entityDesc = (EntityDetailDescriptor) obj;
            Class entityType = first( entityDesc.descriptor().types() );

            // Update the selected item on the combo box, which in turn update the properties table
            ComboBoxModel comboModel = entitiesCombo.getModel();
            int index = -1;
            for( int i = 0; i < comboModel.getSize(); i++ )
            {
                EntityDetailDescriptor entityDesc1 = (EntityDetailDescriptor) comboModel.getElementAt( i );
                Class entityType1 = first( entityDesc1.descriptor().types() );

                if( entityType1.equals( entityType ) )
                {
                    index = i;
View Full Code Here

    comboBoxPalletStatus = new JComboBox();

    comboBoxPalletStatus.setFont(Common.font_std);
    comboBoxPalletStatus.setBounds(672, 135, 143, 21);

    ComboBoxModel jComboBoxDefaultPalletStatusModel = new DefaultComboBoxModel(Common.palletStatusIncBlank);
    comboBoxPalletStatus.setModel(jComboBoxDefaultPalletStatusModel);
    comboBoxPalletStatus.setSelectedIndex(0);
    desktopPane.add(comboBoxPalletStatus);

    textFieldSSCC = new JTextField4j();
View Full Code Here

          jLabel1SortBy.setText(lang.get("lbl_Sort_By"));
          jLabel1SortBy.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel1SortBy.setBounds(242, 90, 80, 21);
        }
        {
          ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(new String[] { "MHN_NUMBER", "RECORDER", "INITIATOR", "REASON", "STATUS", "DATE_CREATED", "DATE_EXPECTED",
              "DATE_RESOLVED" });
          jComboBoxSortBy = new JComboBox4j();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(328, 90, 141, 23);
View Full Code Here

        label4j_std_1.setHorizontalTextPosition(SwingConstants.RIGHT);
        label4j_std_1.setHorizontalAlignment(SwingConstants.RIGHT);
        label4j_std_1.setBounds(22, 160, 175, 21);
        jDesktopPane1.add(label4j_std_1);
       
        ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(moduleList);
        comboBoxPackModuleID.setModel(jComboBox1Model);
        comboBoxPackModuleID.setEnabled(false);
        comboBoxPackModuleID.setBounds(241, 121, 208, 27);
        comboBoxPackModuleID.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
            jButtonUpdate.setEnabled(true);
          }
        });
       
        jDesktopPane1.add(comboBoxPackModuleID);
       
        ComboBoxModel jComboBox2Model = new DefaultComboBoxModel(moduleList);
        comboBoxPalletModuleID.setModel(jComboBox2Model);
        comboBoxPalletModuleID.setEnabled(false);
        comboBoxPalletModuleID.setBounds(241, 157, 208, 27);
        comboBoxPalletModuleID.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
View Full Code Here

    JLabel4j_std lblDataType = new JLabel4j_std(lang.get("lbl_DataType"));
    lblDataType.setHorizontalAlignment(SwingConstants.TRAILING);
    lblDataType.setBounds(8, 97, 92, 16);
    desktopPane.add(lblDataType);
   
    ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(Common.dataTypes);
    comboBoxDataType = new JComboBox4j();
    comboBoxDataType.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        enableSave();
      }
View Full Code Here

          jLabel10.setText(lang.get("lbl_Sort_By"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(0, 92, 91, 21);
        }
        {
          ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(new String[] { "MATERIAL", "LOCATION_ID", "STATUS" });
          jComboBoxSortBy = new JComboBox4j();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(99, 92, 141, 23);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Material_Location_Status"));
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setBounds(0, 65, 91, 21);
        }
        {
          ComboBoxModel jComboBoxStatusModel = new DefaultComboBoxModel(Common.locationStatusIncBlank);
          jComboBoxStatus = new JComboBox4j();
          jDesktopPane1.add(jComboBoxStatus);
          jComboBoxStatus.setModel(jComboBoxStatusModel);
          jComboBoxStatus.setBounds(99, 65, 141, 23);
        }
View Full Code Here

TOP

Related Classes of javax.swing.ComboBoxModel

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.