@Override
  protected void installDefaults(AbstractButton b) {
    super.installDefaults(b);

    String pp = getPropertyPrefix();
    // b.setOpaque(QuaquaManager.getBoolean(pp+"opaque"));
    QuaquaUtilities.installProperty(b, "opaque", UIManager.get(pp + "opaque"));
    b.setRequestFocusEnabled(UIManager.getBoolean(pp + "requestFocusEnabled"));
    b.setFocusable(UIManager.getBoolean(pp + "focusable"));
  }
Ejemplo n.º 2
0
 /** If necessary <code>c</code> is made opaque. */
 private void maybeMakeButtonOpaque(JComponent c) {
   Object opaque = UIManager.get("SplitPane.oneTouchButtonsOpaque");
   if (opaque != null) {
     c.setOpaque(((Boolean) opaque).booleanValue());
   }
 }