示例#1
0
 public void focusGained(FocusEvent e) {
   e.getComponent().removeFocusListener(this);
   currentKeyboardFocusManager.removeKeyEventDispatcher(this);
   final Iterator iterator = events.iterator();
   while (iterator.hasNext()) {
     final KeyEvent ke = (KeyEvent) iterator.next();
     ke.setSource(textComponent);
     textComponent.dispatchEvent(ke);
   }
 }
 public void processKeyEvent(KeyEvent e) {
   e.setSource(this);
   super.processKeyEvent(e);
 }