public void search() {
    String searchText = "";

    do {
      m_Frame.repaint();
      // searchText = JOptionPane.showInputDialog( m_Frame, "Search: ", searchText );

      searchText =
          (String)
              JOptionPane.showInputDialog(
                  m_Frame, "Search", m_title, JOptionPane.QUESTION_MESSAGE, null, null, searchText);

      if ((searchText != null) && (searchText.length() > 0)) {
        if (!search(searchText)) {
          JOptionPane.showMessageDialog(
              m_Frame, "Search string not found", m_title, JOptionPane.ERROR_MESSAGE);
        }
      }
    } while ((searchText != null) && (searchText.length() > 0));
  }
Extends a popup menu of a JTable component with a Search menu.

@param frame the parent frame that is used as the parent frame of the input box.
@param windowTitle the title of the input box
@param table the table to search through
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/tables/CTableSearcher.java