Ejemplo n.º 1
0
  protected void uninstallListeners() {
    final JTextComponent c = getComponent();
    AquaTextFieldSearch.uninstallSearchFieldListener(c);
    AquaUtilControlSize.removeSizePropertyListener(c);
    c.removeFocusListener(handler);
    c.removePropertyChangeListener(handler);
    handler = null;

    super.uninstallListeners();
  }
Ejemplo n.º 2
0
  protected void installListeners() {
    super.installListeners();

    handler = new AquaFocusHandler();
    final JTextComponent c = getComponent();
    c.addFocusListener(handler);
    c.addPropertyChangeListener(handler);

    LookAndFeel.installProperty(c, "opaque", UIManager.getBoolean(getPropertyPrefix() + "opaque"));
    AquaUtilControlSize.addSizePropertyListener(c);
    AquaTextFieldSearch.installSearchFieldListener(c);
  }