public SearchItemComponent(final SearchListComponent list) { super(); this.list = list; this.setOpaque(false); // Initialisation de l'interface graphique this.searchMode = new JComboBox( new String[] { TM.tr("contains"), TM.tr("contains.exactly"), TM.tr("isLessThan"), TM.tr("isEqualTo"), TM.tr("isExactlyEqualTo"), TM.tr("isGreaterThan"), TM.tr("isEmpty") }); final ListComboBoxModel comboModel = new ListComboBoxModel(Arrays.asList(TOUT)); comboModel.setSelectOnAdd(false); // allow getColIndex() and thus getSearchItem() to work from now on assert comboModel.getSelectedItem() != null; this.comboColonnePourRecherche = new JComboBox(comboModel); uiInit(); }