Package com.jgoodies.plaf.plastic

Examples of com.jgoodies.plaf.plastic.PlasticTheme


    public void applyPlasticTheme() {
        if (getLookAndFeel().startsWith("com.jgoodies.plaf.plastic")) {
            List themeList = PlasticLookAndFeel.getInstalledThemes();
            String name = getPlasticTheme();
            for (Iterator it = themeList.iterator(); it.hasNext();) {
                PlasticTheme theme = (PlasticTheme) it.next();
                if (theme.getName().equalsIgnoreCase(name)) {
                    PlasticLookAndFeel.setMyCurrentTheme(theme);
                }
            }
        }
    }
View Full Code Here


public class PlasticThemeCombo extends JComboBox {
    private static List themeList = PlasticLookAndFeel.getInstalledThemes();

    public static PlasticTheme getTheme(String name) {
        for (Iterator iterator = themeList.iterator(); iterator.hasNext();) {
            PlasticTheme plasticTheme = (PlasticTheme) iterator.next();
            if (plasticTheme.getName().equals(name)) {
                return plasticTheme;
            }
        }
        return null;
    }
View Full Code Here

    public void apply() {
        PlasticLookAndFeel.setMyCurrentTheme((PlasticTheme) getSelectedItem());
    }

    public void setSelectedTheme(String name) {
        PlasticTheme theme = getTheme(name);
        if (theme != null) {
            setSelectedItem(theme);
        } else {
            name = "Experience Blue";
            setSelectedItem(getTheme(name));
View Full Code Here

TOP

Related Classes of com.jgoodies.plaf.plastic.PlasticTheme

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.