Ejemplo n.º 1
0
  protected @Override void installUI(JTextComponent c) {
    super.installUI(c);

    if (!attached) {
      attachSystemActionPerformer("incremental-search-forward");
      attachSystemActionPerformer("replace");
      attachSystemActionPerformer(ExtKit.gotoAction);
      attachSystemActionPerformer(ExtKit.showPopupMenuAction);

      // replacing DefaultEditorKit.deleteNextCharAction by BaseKit.removeSelectionAction
      // #41223
      // attachSystemActionPerformer(BaseKit.removeSelectionAction);

      attached = true;
    }

    c.addFocusListener(focusL);
  }