pane.search("ab");
pane.search("abc");
  public static void main(String[] args) {    ConsoleStyledDocument doc = new ConsoleStyledDocument();    javax.swing.text.AttributeSet a =       new javax.swing.text.SimpleAttributeSet();    ConsoleTextPane pane = new ConsoleTextPane(doc);    pane.appendString("abcdefghijklmnopqrstuvw", a);    pane.search("ab");    pane.setNotifyCondition("xyz");    pane.appendString("xyzabc", a);    pane.searchNext();    pane.appendString("xyz", a);    pane.notifyNext();    javax.swing.JFrame frame = new javax.swing.JFrame();    frame.getContentPane().add(pane);    frame.pack();    frame.setSize(200, 200);    frame.setVisible(true);  }