示例#1
0
 public JTextField getReplaceTextField() {
   if (replaceTextField == null) {
     replaceTextField = new JTextField();
     replaceTextField.setFocusAccelerator('p');
     replaceTextField.addActionListener(this);
   }
   return replaceTextField;
 }
示例#2
0
 public JTextField getFindTextField() {
   if (findTextField == null) {
     findTextField = new JTextField();
     findTextField.setFocusAccelerator('n');
     findTextField.addActionListener(this);
   }
   return findTextField;
 }