Object listOb[] = list.toArray();
Arrays.sort(listOb, new SearchModel.StringComparator()); //TE: sort the list alphabetically.
CBJComboBox loadCombo = new CBJComboBox(listOb);
loadCombo.setRenderer(new CBBasicComboBoxRenderer(listOb));
loadCombo.setPreferredSize(new Dimension(140, 20));
int response = JOptionPane.showConfirmDialog(this, loadCombo, CBIntText.get("Select Filter"), JOptionPane.OK_CANCEL_OPTION);
if (response != JOptionPane.OK_OPTION)
return; //TE: the user has probably decided not to load a filter i.e. has clicked 'cancel'.