boolean found = ((ConsoleTextPane)component).searchNext();
boolean found = consoleTextPane.searchNext();
  public void searchNext_actionPerformed() {    // search and highlight    boolean found = ((ConsoleTextPane)component).searchNext();    searchNextAction.setEnabled(found);    component.revalidate();    component.repaint();  }