Package javax.swing

Examples of javax.swing.ComboBoxModel


                  String text = tf.getText();
                  if(text.length()==0) {
                      setSuggestionModel(comboBox, new DefaultComboBoxModel(list), "");
                      comboBox.hidePopup();
                  }else{
                      ComboBoxModel m = getSuggestedModel(list, text);
                      if(m.getSize()==0 || shouldHide) {
                          comboBox.hidePopup();
                      }else{
                          setSuggestionModel(comboBox, m, text);
                          comboBox.showPopup();
                      }
View Full Code Here


        // Listen for changes to the info text field
        deployedModelURLTF.getDocument().addDocumentListener(
                new InfoTextFieldListener());

        ComboBoxModel cb = new DefaultComboBoxModel(TransparencyMode.values());
        transparencyCB.setModel(cb);
        transparencyCB.setRenderer(new DefaultListCellRenderer() {
            @Override
            public Component getListCellRendererComponent(JList list, Object value,
                                                          int index, boolean isSelected,
View Full Code Here

        getContentPane().add(jLabelRemplacement2);
        jLabelRemplacement2.setText("choisissez une valeur de remplacement :");
        jLabelRemplacement2.setBounds(7, 42, 301, 21);
      }
      {
        ComboBoxModel jComboBoxGeneriqueModel = new DefaultComboBoxModel(
            new String[] {});
        jComboBoxGenerique = new JComboBox();
        getContentPane().add(jComboBoxGenerique);
        jComboBoxGenerique.setModel(jComboBoxGeneriqueModel);
        jComboBoxGenerique.setBounds(14, 77, 273, 28);
View Full Code Here

          jLabelLangue = new JLabel();
          getContentPane().add(jLabelLangue);
          jLabelLangue.setBounds(7, 140, 224, 28);
        }
        {
          ComboBoxModel jComboBoxLangueModel = new DefaultComboBoxModel(new String[]{});
          jComboBoxLangueProgramme = new JComboBox();
          getContentPane().add(jComboBoxLangueProgramme);
          jComboBoxLangueProgramme.setModel(jComboBoxLangueModel);
          jComboBoxLangueProgramme.setBounds(238, 140, 336, 28);
          remplirListeLangueProgramme();
View Full Code Here

          jLabelTypeMedia = new JLabel();
          getContentPane().add(jLabelTypeMedia);
          jLabelTypeMedia.setBounds(7, 63, 112, 28);
        }
        {
          ComboBoxModel jComboBoxTypeMediaModel = new DefaultComboBoxModel(
              new String[] { });
          jComboBoxTypeMedia = new JComboBox();
          getContentPane().add(jComboBoxTypeMedia);
          jComboBoxTypeMedia.setModel(jComboBoxTypeMediaModel);
          jComboBoxTypeMedia.setBounds(133, 63, 476, 28);
          remplirListeMedia();
        }
        {
          jLabelNumeroMedia = new JLabel();
          getContentPane().add(jLabelNumeroMedia);
          jLabelNumeroMedia.setBounds(7, 105, 112, 28);
        }
        {
          jTextNumeroMedia = new JTextField();
          getContentPane().add(jTextNumeroMedia);
          jTextNumeroMedia.setBounds(133, 105, 84, 28);
        }
        {
          jLabelInfoNumeroMedia = new JLabel();
          getContentPane().add(jLabelInfoNumeroMedia);
          jLabelInfoNumeroMedia.setBounds(224, 105, 392, 28);
          jLabelInfoNumeroMedia.setFont(new java.awt.Font("Tahoma",0,9));
        }
        {
          jLabelLangue = new JLabel();
          getContentPane().add(jLabelLangue);
          jLabelLangue.setBounds(7, 147, 112, 28);
        }
        {
          ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxLangue = new JComboBox();
          getContentPane().add(jComboBoxLangue);
          jComboBoxLangue.setModel(jComboBox1Model);
          jComboBoxLangue.setBounds(133, 147, 476, 28);
          remplirListeLangue();
        }
        {
          jLabelCompression = new JLabel();
          getContentPane().add(jLabelCompression);
          jLabelCompression.setBounds(7, 189, 112, 28);
        }
        {
          ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxCompression = new JComboBox();
          getContentPane().add(jComboBoxCompression);
          jComboBoxCompression.setModel(jComboBox1Model);
          jComboBoxCompression.setBounds(133, 189, 476, 28);
          remplirListeCompression();
        }
        {
          jLabelQualite = new JLabel();
          getContentPane().add(jLabelQualite);
          jLabelQualite.setBounds(7, 231, 112, 28);
        }
        {
          ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxQualite = new JComboBox();
          getContentPane().add(jComboBoxQualite);
          jComboBoxQualite.setModel(jComboBox1Model);
          jComboBoxQualite.setBounds(133, 231, 476, 28);
View Full Code Here

          jTextNomFilm = new JTextField();
          getContentPane().add(jTextNomFilm);
          jTextNomFilm.setBounds(133, 28, 476, 28);
        }
        {
          ComboBoxModel jComboBoxTypeMediaModel = new DefaultComboBoxModel(
              new String[] { });
          jComboBoxTypeMedia = new JComboBox();
          getContentPane().add(jComboBoxTypeMedia);
          jComboBoxTypeMedia.setModel(jComboBoxTypeMediaModel);
          jComboBoxTypeMedia.setBounds(20, 193, 138, 28);
          jComboBoxTypeMedia.setVisible(false);
          remplirListeMedia();
        }
        {
          jLabelLangue = new JLabel();
          getContentPane().add(jLabelLangue);
          jLabelLangue.setBounds(9, 59, 112, 28);
        }
        {
          ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxLangue = new JComboBox();
          getContentPane().add(jComboBoxLangue);
          jComboBoxLangue.setModel(jComboBox1Model);
          jComboBoxLangue.setBounds(133, 59, 476, 28);
          remplirListeLangue();
        }
        {
          jLabelCompression = new JLabel();
          getContentPane().add(jLabelCompression);
          jLabelCompression.setBounds(8, 91, 112, 28);
        }
        {
          ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxCompression = new JComboBox();
          getContentPane().add(jComboBoxCompression);
          jComboBoxCompression.setModel(jComboBox1Model);
          jComboBoxCompression.setBounds(133, 91, 476, 28);
          remplirListeCompression();
        }
        {
          jLabelQualite = new JLabel();
          getContentPane().add(jLabelQualite);
          jLabelQualite.setBounds(8, 122, 112, 28);
        }
        {
          ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxQualite = new JComboBox();
          getContentPane().add(jComboBoxQualite);
          jComboBoxQualite.setModel(jComboBox1Model);
          jComboBoxQualite.setBounds(133, 122, 476, 28);
View Full Code Here

        {
          jLabelTypeMedia = new JLabel();
          jPanelHaut.add(jLabelTypeMedia);
        }
        {
          ComboBoxModel jComboBoxTypeMediaModel = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxTypeMedia = new JComboBox();
          jPanelHaut.add(jComboBoxTypeMedia);
          jComboBoxTypeMedia.setModel(jComboBoxTypeMediaModel);
          remplirListeMedia();
        }
        {
          jLabelStatut = new JLabel();
          jPanelHaut.add(jLabelStatut);
          jLabelStatut.setPreferredSize(new java.awt.Dimension(54, 14));
        }
        {
          ComboBoxModel jComboBoxStatutModel = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxStatut = new JComboBox();
          jPanelHaut.add(jComboBoxStatut);
          jComboBoxStatut.setModel(jComboBoxStatutModel);
          remplirListeStatut();
          jComboBoxStatut.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              appliquerFiltre();
            }
          });
        }
        {
          jLabelCompression = new JLabel();
          jPanelHaut.add(jLabelCompression);
          jLabelCompression.setPreferredSize(new java.awt.Dimension(
              88,
              14));
        }
        {
          ComboBoxModel jComboBoxCompressionModel = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxCompression = new JComboBox();
          jPanelHaut.add(jComboBoxCompression);
          jComboBoxCompression.setModel(jComboBoxCompressionModel);
          this.remplirListeCompression();
          jComboBoxCompression.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              appliquerFiltre();
            }
          });
        }
        {
          jLabelLangue = new JLabel();
          jPanelHaut.add(jLabelLangue);
          jLabelLangue.setPreferredSize(new java.awt.Dimension(56, 14));
        }
        {
          ComboBoxModel jComboBoxLangueModel = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxLangue = new JComboBox();
          jPanelHaut.add(jComboBoxLangue);
          jComboBoxLangue.setModel(jComboBoxLangueModel);
          this.remplirListeLangue();
          jComboBoxLangue.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              appliquerFiltre();
            }
          });
        }
        {
          jLabelQualite = new JLabel();
          jPanelHaut.add(jLabelQualite);
          jLabelQualite.setPreferredSize(new java.awt.Dimension(
              60,
              14));
        }
        {
          ComboBoxModel jComboBoxQualiteModel = new DefaultComboBoxModel(
              new String[] {});
          jComboBoxQualite = new JComboBox();
          jPanelHaut.add(jComboBoxQualite);
          jComboBoxQualite.setModel(jComboBoxQualiteModel);
          this.remplirListeQualite();
View Full Code Here

        this.add(jLabelJahrgang);
        jLabelJahrgang.setText("Jahrgang:");
        jLabelJahrgang.setBounds(145, 28, 69, 15);
      }
      {
        ComboBoxModel jComboBoxBildungsgangModel =
          new DefaultComboBoxModel(
              new String[] { "DQMata", "Mata"});
        jComboBoxBildungsgang = new JComboBox();
        this.add(jComboBoxBildungsgang);
        jComboBoxBildungsgang.setModel(jComboBoxBildungsgangModel);
View Full Code Here

        jButtonLoeschen.setText("Loeschen");
        jButtonLoeschen.setBounds(255, 193, 110, 32);
        jButtonLoeschen.setFont(new java.awt.Font("Comic Sans MS",0,14));
      }
      {
        ComboBoxModel jComboBox1Model =
            new DefaultComboBoxModel(
                new String[] { "Kein Praktikum", "Bremer Sport GmbH", "Schauburg GmbH", "Neusta GmbH", "Hmmh Gmbh" });
        jComboBoxFirma = new JComboBox();
        this.add(jComboBoxFirma);
        jComboBoxFirma.setModel(jComboBox1Model);
View Full Code Here

        getContentPane().add(jButton1);
        jButton1.setText("Suchen");
        jButton1.setBounds(103, 55, 121, 25);
      }
      {
        ComboBoxModel jComboBox1Model =
            new DefaultComboBoxModel(
                new String[] { "Name", "Vorname" });
        jComboBox1 = new JComboBox();
        getContentPane().add(jComboBox1);
        jComboBox1.setModel(jComboBox1Model);
        jComboBox1.setBounds(229, 29, 149, 22);
      }
      {
        ComboBoxModel jComboBox2Model =
            new DefaultComboBoxModel(
                new String[] { "Schueler", "Firma" });
        jComboBox2 = new JComboBox();
        getContentPane().add(jComboBox2);
        jComboBox2.setModel(jComboBox2Model);
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.