Exemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 protected void installDefaults() {
   // Installs the text cursor on the component
   super.installDefaults();
   updateStyle(getComponent());
   getComponent().addFocusListener(handler);
 }
Exemplo n.º 2
0
  protected void installDefaults() {
    if (!GraphicsEnvironment.isHeadless()) {
      oldDragState = getComponent().getDragEnabled();
      getComponent().setDragEnabled(true);
    }

    super.installDefaults();
  }
Exemplo n.º 3
0
  /** @see javax.swing.plaf.basic.BasicTextUI#installDefaults() */
  protected void installDefaults() {
    // Installs the text cursor on the component
    super.installDefaults();

    JTextComponent c = getComponent();

    updateStyle(c);
    c.addFocusListener(this);
  }