src/main/java/org/jwellman/swing/component/HorizontalGraphitePanel.java
public static <T extends AbstractButton> T decorateButton(T b, Font font, Dimension size) {
        b.setUI(BUTTONUI); // this *must* be first
        b.setFont((font != null) ? font : FONT_DEFAULT );
        b.setMinimumSize((size != null) ? size : (size = BUTTON_DIMENSION));
        b.setPreferredSize(size);
        b.setMaximumSize(size);
        b.setBorder(null); // Some L&F (i.e. Metal) apply borders to buttons by default; Nimbus does not
        return b;
    }
/**
     * Convenience method to decorate a user-defined Button object.
     * <p>
     * Note that this is used internally by createButton().
     * 
     * @param b
     * @param font
     * @param size
     * @return
     */
Convenience method to decorate a user-defined Button object.

Note that this is used internally by createButton().


Convenience method to decorate a user - defined Button object . Note that this is used internally by createButton () .
public static <T extends AbstractButton> T decorateButton(T b, Font font, Dimension size) {
        b.setUI(BUTTONUI); 
        b.setFont((font != null) ? font : FONT_DEFAULT );
        b.setMinimumSize((size != null) ? size : (size = BUTTON_DIMENSION));
        b.setPreferredSize(size);
        b.setMaximumSize(size);
        b.setBorder(null); 
        return b;
    }
public static < T extends AbstractButton > T decorateButton ( T b , Font font , Dimension size ) { b . setUI ( BUTTONUI ) ; b . setFont ( ( font != null ) ? font : FONT_DEFAULT ) ; b . setMinimumSize ( ( size != null ) ? size : ( size = BUTTON_DIMENSION ) ) ; b . setPreferredSize ( size ) ; b . setMaximumSize ( size ) ; b . setBorder ( null ) ; return b ; }
Convenience method to decorate a user-defined Button object.
Convenience method to decorate a user - defined Button object .
// this *must* be first // Some L&F (i.e. Metal) apply borders to buttons by default; Nimbus does not