Package org.jvnet.substance.utils.border

Examples of org.jvnet.substance.utils.border.SubstanceButtonBorder


    // });
    this.setEnabled(spinner.isEnabled());
    this.setFocusable(false);
    this.setRequestFocusEnabled(false);
    this.setMargin(new Insets(0, 0, 0, 2));
    this.setBorder(new SubstanceButtonBorder(ClassicButtonShaper.class) {
      public Insets getBorderInsets(Component c) {
        int extraPadding = SubstanceSizeUtils
            .getExtraPadding(SubstanceSizeUtils
                .getComponentFontSize(c));
        // Bring the icons closer together instead of
View Full Code Here


    } else {
      Border currBorder = b.getBorder();
      if (!(currBorder instanceof SubstanceButtonBorder)) {
        b.setBorder(shaper.getButtonBorder(b));
      } else {
        SubstanceButtonBorder sbCurrBorder = (SubstanceButtonBorder) currBorder;
        if (shaper.getClass() != sbCurrBorder.getButtonShaperClass())
          b.setBorder(shaper.getButtonBorder(b));
      }
    }
    b.putClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL, b.isOpaque());
    b.setOpaque(false);
View Full Code Here

   * @see
   * org.jvnet.substance.button.SubstanceButtonShaper#getButtonBorder(javax
   * .swing.AbstractButton)
   */
  public Border getButtonBorder(AbstractButton button) {
    return new SubstanceButtonBorder(StandardButtonShaper.class) {
      public Insets getBorderInsets(Component c) {
        int componentFontSize = SubstanceSizeUtils
            .getComponentFontSize(c);
        int extraPadding = SubstanceSizeUtils
            .getExtraPadding(componentFontSize);
View Full Code Here

   * @see
   * org.jvnet.substance.button.SubstanceButtonShaper#getButtonBorder(javax
   * .swing.AbstractButton)
   */
  public Border getButtonBorder(final AbstractButton button) {
    return new SubstanceButtonBorder(ClassicButtonShaper.class) {
      public Insets getBorderInsets(Component c) {
        int fontSize = SubstanceSizeUtils.getComponentFontSize(button);
        int extraPadding = SubstanceSizeUtils.getExtraPadding(fontSize);
        int focusPadding = SubstanceSizeUtils
            .getFocusRingPadding(fontSize);
View Full Code Here

    } else {
      Border currBorder = b.getBorder();
      if (!(currBorder instanceof SubstanceButtonBorder)) {
        b.setBorder(shaper.getButtonBorder(b));
      } else {
        SubstanceButtonBorder sbCurrBorder = (SubstanceButtonBorder) currBorder;
        if (shaper.getClass() != sbCurrBorder.getButtonShaperClass())
          b.setBorder(shaper.getButtonBorder(b));
      }
    }
    b.putClientProperty(SubstanceButtonUI.OPACITY_ORIGINAL, b.isOpaque());
    // fix for defect 140
View Full Code Here

TOP

Related Classes of org.jvnet.substance.utils.border.SubstanceButtonBorder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.