JTextFinder - Java Text Find and Replace Component
The JTextFinder provides a component to perform
find and replace operation.
Find Text
Code Samples:
JTextFinder finder = new JTextFinder();
finder.setForComponent(dataGrid);
// find the next string
finder.findNext();
// cancel the find operation
finder.cancel();
Related Methods:
JTextFinder#setForComponent(Component c);
JTextFinder#setFindText(String findText);
JTextFinder#setOptions(Component[] options);
Replace Text
Code Samples:
JTextFinder finder = new JTextFinder();
finder.setForComponent(dataGrid);
// replace the current string
finder.replace();
// repalce all the string
finder.replaceAll();
// cancel the replace operation
finder.cancel();