Package com.commander4j.gui

Examples of com.commander4j.gui.JComboBox4j


      jLabelQuantity = new JLabel4j_std();
      jPanelPallet.add(jLabelQuantity);
      jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
      jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelQuantity.setBounds(323, 21, 119, 21);
      comboBoxPrintQueue = new JComboBox4j();
      comboBoxPrintQueue.setBounds(116, 455, 621, 23);
      jDesktopPane1.add(comboBoxPrintQueue);

      {
        jTextFieldSSCC = new JTextField4j();
View Full Code Here


          jLabelStatus.setText(lang.get("lbl_Status"));
          jLabelStatus.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelStatus.setBounds(242, 35, 102, 21);
        }
        {
          jTextFieldStatus = new JComboBox4j();
          jTextFieldStatus.setModel(new DefaultComboBoxModel(new String[] {"", "Active", "Closed"}));
          jDesktopPane1.add(jTextFieldStatus);
          jTextFieldStatus.setBounds(349, 35, 120, 23);
          jTextFieldStatus.setSelectedItem("Active");
        }
        {
          jLabel1SortBy = new JLabel4j_std();
          jDesktopPane1.add(jLabel1SortBy);
          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);
          jComboBoxSortBy.setSelectedItem("MHN_NUMBER");
          jComboBoxSortBy.setRequestFocusEnabled(false);
View Full Code Here

        }
      }
    });
    desktopPane.add(btnProcessOrderLookup);
   
    comboboxActivities = new JComboBox4j();
    comboboxActivities.setBounds(125, 93, 470, 28);
    comboboxActivities.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        populateTable();
      }
View Full Code Here

          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

    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();
      }
    });
    comboBoxDataType.setModel(jComboBox1Model);
    comboBoxDataType.setBounds(111, 94, 153, 27);
    desktopPane.add(comboBoxDataType);
 
    comboBoxSelectList = new JComboBox4j();
    comboBoxSelectList.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        enableSave();
      }
    });
    comboBoxSelectList.addItem("");
    LinkedList<String> items = new LinkedList<String>();
    items = slist.getSelectListSummary();
   
    if (dict.getSelectListID().equals("")==false)
    {
      if (items.contains(dict.getSelectListID())==false)
      {
        items.addFirst(dict.getSelectListID());
      }
    }
   
    for (int x=0;x<items.size();x++)
    {
      comboBoxSelectList.addItem(items.get(x));
    }

    comboBoxSelectList.setBounds(112, 133, 153, 27);
    desktopPane.add(comboBoxSelectList);
   
    JLabel4j_std lblSelectListID = new JLabel4j_std(lang.get("lbl_List_ID"));
    lblSelectListID.setHorizontalAlignment(SwingConstants.TRAILING);
    lblSelectListID.setBounds(8, 138, 92, 16);
    desktopPane.add(lblSelectListID);
   
    chckbxVisible = new JCheckBox("");
    chckbxVisible.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        enableSave();
      }
    });
    chckbxVisible.setSelected(true);
    chckbxVisible.setBounds(112, 172, 28, 23);
    desktopPane.add(chckbxVisible);
   
    JLabel4j_std lblVisible = new JLabel4j_std(lang.get("lbl_Visible"));
    lblVisible.setHorizontalAlignment(SwingConstants.TRAILING);
    lblVisible.setBounds(8, 179, 92, 16);
    desktopPane.add(lblVisible);
   
    JLabel4j_std lblUOM = new JLabel4j_std(lang.get("lbl_Material_UOM"));
    lblUOM.setHorizontalAlignment(SwingConstants.TRAILING);
    lblUOM.setBounds(8, 213, 92, 16);
    desktopPane.add(lblUOM);
   
    textFieldUOM = new JTextField4j();
    textFieldUOM.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent arg0) {
        enableSave();
      }
    });
    textFieldUOM.setText("");
    textFieldUOM.setColumns(10);
    textFieldUOM.setBounds(112, 206, 143, 28);
    desktopPane.add(textFieldUOM);
   
    spinnerWidth = new JSpinner();

    spinnerWidth.setBounds(494, 132, 68, 28);
    JSpinner.NumberEditor ne_spinnerWidth = new JSpinner.NumberEditor(spinnerWidth);
    ne_spinnerWidth.getTextField().addKeyListener(new KeyAdapter() {
      @Override
      public void keyPressed(KeyEvent e) {
        enableSave();
      }
    });

    ne_spinnerWidth.getTextField().setFont(Common.font_std);
    spinnerWidth.setEditor(ne_spinnerWidth);
    spinnerWidth.setValue(50);
    spinnerWidth.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent e) {
        enableSave();
      }
    });
   
    desktopPane.add(spinnerWidth);

   
    JLabel4j_std label4j_std = new JLabel4j_std("Width");
    label4j_std.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std.setBounds(392, 136, 92, 16);
    desktopPane.add(label4j_std);
   
    comboBoxAlignment = new JComboBox4j(fieldAlignment);
    comboBoxAlignment.setBounds(464, 94, 98, 27);
    desktopPane.add(comboBoxAlignment);
   
    // ****************** //
    
View Full Code Here

          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(472, 77, 103, 21);
        }
        {
          ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(new String[] { "LOCATION_ID", "PLANT", "WAREHOUSE", "DESCRIPTION", "GLN", "STORAGE_LOCATION", "STORAGE_TYPE", "STORAGE_SECTION", "STORAGE_BIN" });
          jComboBoxSortBy = new JComboBox4j();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(582, 75, 231, 23);
          jComboBoxSortBy.setSelectedItem("LOCATION_ID,PLANT,WAREHOUSE");
          jComboBoxSortBy.setRequestFocusEnabled(false);
View Full Code Here

      jLabel4 = new JLabel4j_std();
      jTextFieldUserID = new JTextField4j();
      jTextFieldComment = new JTextField4j();
      jPasswordField1 = new JPasswordField();
      jPasswordField2 = new JPasswordField();
      jComboBoxLanguage = new JComboBox4j();
      jComboBoxLanguage.setModel(new DefaultComboBoxModel(Common.languages));
      jTextFieldLastLogon = new JTextField4j();
      jTextFieldLastPasswordChange = new JTextField4j();
      jLabel5 = new JLabel4j_std();
      jLabel6 = new JLabel4j_std();
View Full Code Here

            }
          });
        }
        {
          ComboBoxModel jComboBoxDefaultPalletStatusModel = new DefaultComboBoxModel(Common.palletStatusIncBlank);
          jComboBoxPalletStatus = new JComboBox4j();
          jComboBoxPalletStatus.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              jButtonUpdate.setEnabled(true);
            }
          });
View Full Code Here

          jLabel5.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel5.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel5.setBounds(0, 60, 152, 21);
        }
        {
          comboBox = new JComboBox4j();
          comboBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
              jButtonUpdate.setEnabled(true);
            }
          });
          comboBox.setBounds(164, 206, 180, 23);
          comboBox.addItem("");
          comboBox.addItem("Standard");
          comboBox.addItem("Label");
          jDesktopPane1.add(comboBox);
        }
        {
          jComboBoxType = new JComboBox4j();
          jDesktopPane1.add(jComboBoxType);
          jComboBoxType.setEnabled(true);
          jComboBoxType.setEditable(false);
          jComboBoxType.setLightWeightPopupEnabled(true);
          jComboBoxType.setIgnoreRepaint(false);
View Full Code Here

          jTextFieldPrinterID.setPreferredSize(new java.awt.Dimension(100, 20));
          jTextFieldPrinterID.setBounds(178, 13, 252, 21);
          jTextFieldPrinterID.setEnabled(false);
        }
        {
          comboBoxPrinterType = new JComboBox4j();
          comboBoxPrinterType.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              jButtonUpdate.setEnabled(true);
            }
          });
View Full Code Here

TOP

Related Classes of com.commander4j.gui.JComboBox4j

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.