Package org.jdesktop.swingx.border

Examples of org.jdesktop.swingx.border.IconBorder


            Icon upIcon = UIManager.getIcon("JXMonthView.monthUpFileName");

            // fix for #1028-swingx: title border whacky for boxpadding 0
            // in fact there had been a deeper issue - without using the arrowPadding here
            // the hit-detection of the buttons is slightly off target
            IconBorder up = new IconBorder(upIcon, SwingConstants.EAST, arrowPaddingX);
            IconBorder down = new IconBorder(downIcon, SwingConstants.WEST, arrowPaddingX);
            Border compound = BorderFactory.createCompoundBorder(up, down);
            Border empty = BorderFactory.createEmptyBorder(2* arrowPaddingY, 0, 2*arrowPaddingY, 0);
            return BorderFactory.createCompoundBorder(compound, empty);
        }
       
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.border.IconBorder

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.