Package com.openzoeos.swing

Examples of com.openzoeos.swing.OpenZoeosButton


    private static JComponent createHyperlinkButton(Action a) {
        return createHyperlinkButton(a, false);
    }

    private static JComponent createHyperlinkButton(Action a, boolean smallFont) {
        final OpenZoeosButton button = new OpenZoeosButton(a) {
            public Color getBackground() {
                return UIColors.getDefaultBG();
            }

            public Color getForeground() {
                return UIColors.getDefaultFG();
            }
        };
        button.setAction(a);
        button.setButtonStyle(OpenZoeosButton.HYPERLINK_STYLE);

        button.setOpaque(true);
        button.setPreferredSize(new Dimension(0, 20));
        button.setHorizontalAlignment(SwingConstants.CENTER);

        button.setRequestFocusEnabled(true);
        button.setFocusable(true);
        button.setFont((smallFont ? smallButtonFont : buttonFont));
        button.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        return button;
    }
View Full Code Here

TOP

Related Classes of com.openzoeos.swing.OpenZoeosButton

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.