@Override
 protected void installDefaults(AbstractButton b) {
   super.installDefaults(b);
   b.setContentAreaFilled(false);
   b.setOpaque(false);
   b.setBackground(new Color(250, 250, 250));
   initShape(b);
 }
  @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"));
  }
 //    public void
 public void installDefaults(AbstractButton b) {
   super.installDefaults(b);
   Insets insets = UIManager.getInsets("CollapsiblePaneHeader.margin");
   b.setBorder(
       null); // aqua does this. perhaps other too. this happens early enough that it should not
              // interfere with borders set in user code
   b.setBorder(
       BorderFactory.createEmptyBorder(
           insets.top, insets.left, insets.bottom, insets.right)); // cant get margins to work!
   b.setVerticalAlignment(SwingConstants.BOTTOM);
   b.setHorizontalAlignment(SwingConstants.LEFT);
   //    	b.setMargin(UIManager.getInsets("CollapsiblePaneHeader.margin"));
 }
Exemplo n.º 4
0
  /* (non-Javadoc)
   * @see javax.swing.plaf.basic.BasicButtonUI#installDefaults(javax.swing.AbstractButton)
   */
  protected void installDefaults(AbstractButton b) {
    super.installDefaults(b);
    b.setOpaque(false);

    if (!defaults_initialized) {
      String pp = getPropertyPrefix();
      dashedRectGapX = UIManager.getInt(pp + "dashedRectGapX");
      dashedRectGapY = UIManager.getInt(pp + "dashedRectGapY");
      dashedRectGapWidth = UIManager.getInt(pp + "dashedRectGapWidth");
      dashedRectGapHeight = UIManager.getInt(pp + "dashedRectGapHeight");
      focusColor = UIManager.getColor(pp + "focus");
      defaults_initialized = true;
    }

    //		BEXPStyle xp = BEXPStyle.getXP();
    //		if (xp != null)
    {
      b.setBorder(
          new XPEmptyBorder(new Insets(3, 3, 3, 3))); // xp.getBorder(b, getXPButtonType(b)));
      LookAndFeel.installProperty(b, "rolloverEnabled", Boolean.TRUE);
    }
  }
Exemplo n.º 5
0
 // ********************************
 //          Install PLAF
 // ********************************
 public void installUI(JComponent c) {
   installDefaults((AbstractButton) c);
   installListeners((AbstractButton) c);
   installKeyboardActions((AbstractButton) c);
   BasicHTML.updateRenderer(c, ((AbstractButton) c).getText());
 }
Exemplo n.º 6
0
 // ********************************
 //          Install
 // ********************************
 public void installDefaults(AbstractButton b) {
   super.installDefaults(b);
 }