list.addSelectionListener(new SelectionRouter());
return list;
}
private KongaTextField createSearchField() {
KongaTextField f = new KongaTextField();
f.getDocument().addDocumentListener(new DocumentContentChangeListener() {
@Override
public void contentChanged(DocumentEvent e) {
editorList.setFilter(new Filter(searchField.getText()));
editorList.selectFirst();
}
});
f.addActionListener(selector);
Action keyDown = new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
editorList.requestFocus();