Package com.explodingpixels.widgets

Examples of com.explodingpixels.widgets.ImageButton


                Icon pressedIcon = new ImageIcon(
                        DImageButton.class.getResource("/com/explodingpixels/macwidgets/icons/scroller_pressed.png"));
                Icon mask = new ImageIcon(
                        DImageButton.class.getResource("/com/explodingpixels/macwidgets/icons/scroller_mask.png"));

                ImageButton button = new ImageButton(icon, mask);
                button.setPressedIcon(pressedIcon);

                JFrame frame = new JFrame();
                frame.add(button, BorderLayout.CENTER);
                frame.setSize(150, 100);
                frame.setLocationRelativeTo(null);
View Full Code Here


    }

    // Utility methods. ///////////////////////////////////////////////////////////////////////////

    private static AbstractButton createButton(ArtworkUtils.ImageSet images, ImageIcon buttonMask) {
        ImageButton retVal = new ImageButton(images.getActiveImage(), buttonMask);
        retVal.setPressedIcon(images.getPressedImage());
        retVal.setDisabledIcon(images.getInactiveImage());
        retVal.setInactiveIcon(images.getInactiveImage());
        return retVal;
    }
View Full Code Here

        retVal.setInactiveIcon(images.getInactiveImage());
        return retVal;
    }

    private static AbstractButton createButton(ArtworkUtils.ImageSet images) {
        ImageButton retVal = new ImageButton(images.getActiveImage());
        retVal.setPressedIcon(images.getPressedImage());
        retVal.setDisabledIcon(images.getInactiveImage());
        retVal.setInactiveIcon(images.getInactiveImage());
        return retVal;
    }
View Full Code Here

TOP

Related Classes of com.explodingpixels.widgets.ImageButton

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.