@Override
 public void removeUpdate(DocumentEvent e) {
   if (e.getDocument() == wordInput.getDocument()) {
     searchList.setListData(
         wordPanel.getDic().getNextWords(wordInput.getText(), SEARCH_LIST_CAPACITY));
     // searchList.setSelectedIndex(0);
   }
 }
 public void wordSelected(String word) {
   if (word != null) {
     wordPanel.setWord(word);
     graphPanel.updateGraph(word, wordPanel);
   }
 }