Package javax.swing.plaf.metal

Examples of javax.swing.plaf.metal.MetalTheme


     *
     * @return the current PlasticTheme
     */
    public static PlasticTheme getPlasticTheme() {
        if (LookUtils.IS_JAVA_5_OR_LATER) {
            MetalTheme theme = getCurrentTheme0();
            if (theme instanceof PlasticTheme)
                return (PlasticTheme) theme;
        }
        PlasticTheme uimanagerTheme = (PlasticTheme) UIManager.get(THEME_KEY);
        if (uimanagerTheme != null)
View Full Code Here


        String classname = themepack.substring("class:".length());
        SkinLookAndFeel.setSkin((Skin)Class.forName(classname).newInstance());
        UIManager.setLookAndFeel("com.l2fprod.gui.plaf.skin.SkinLookAndFeel");
      } else if (themepack.startsWith("theme:")) {
        String classname = themepack.substring("theme:".length());
        MetalTheme theme = (MetalTheme)Class.forName(classname).newInstance();
        MetalLookAndFeel metal = new MetalLookAndFeel();
        MetalLookAndFeel.setCurrentTheme(theme);
        UIManager.setLookAndFeel(metal);
      } else {
        SkinLookAndFeel.setSkin(SkinLookAndFeel.loadThemePack(args[0]));
View Full Code Here

         */
        public static MetalTheme valueOf(String aText) {
            if (aText == null)
                return null;
            Iterator<MetalTheme> valuesIter = VALUES.iterator();
            MetalTheme theme = null;
            while (valuesIter.hasNext()) {
                theme = valuesIter.next();
                if (aText.equals(theme.getName())) {
                    return theme;
                }
            }
            throw new IllegalArgumentException("Cannot parse into Theme object:" + aText);
        }
View Full Code Here

TOP

Related Classes of javax.swing.plaf.metal.MetalTheme

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.