boolean found = ((ConsoleTextPane)component).search(s);
boolean found = consoleTextPane.search(s);
  public void search_actionPerformed() {    // get string to search for    String s = JOptionPane.showInputDialog("Search string:");    if (s == null || s.length() == 0) {      return;    }    // search and highlight    boolean found = ((ConsoleTextPane)component).search(s);    searchNextAction.setEnabled(found);  }