当前位置: 首页>>代码示例>>Java>>正文


Java PlasticLookAndFeel.setCurrentTheme方法代码示例

本文整理汇总了Java中com.jgoodies.looks.plastic.PlasticLookAndFeel.setCurrentTheme方法的典型用法代码示例。如果您正苦于以下问题:Java PlasticLookAndFeel.setCurrentTheme方法的具体用法?Java PlasticLookAndFeel.setCurrentTheme怎么用?Java PlasticLookAndFeel.setCurrentTheme使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.jgoodies.looks.plastic.PlasticLookAndFeel的用法示例。


在下文中一共展示了PlasticLookAndFeel.setCurrentTheme方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: main

import com.jgoodies.looks.plastic.PlasticLookAndFeel; //导入方法依赖的package包/类
/**
 * Initial method called by the operation system to execute this program.
 * 
 * @param args
 *            arguments to the program
 */
public static void main(String[] args) {
	try {
		/*
		 * // set SkinLF to execute Skin theSkinToUse =
		 * SkinLookAndFeel.loadThemePack("aquathemepack.zip");
		 * SkinLookAndFeel.setSkin(theSkinToUse);
		 * 
		 * UIManager.setLookAndFeel(new SkinLookAndFeel());
		 */
		PlasticLookAndFeel.setCurrentTheme(new Silver());
		UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
	} catch (Exception exc) {
		exc.printStackTrace();
	}

	UIFacade.getInstance().loadUI();
}
 
开发者ID:guilhebl,项目名称:routerapp,代码行数:24,代码来源:Main.java

示例2: main

import com.jgoodies.looks.plastic.PlasticLookAndFeel; //导入方法依赖的package包/类
public static void main(String args[]) {
    	// set look and feel
    	PlasticLookAndFeel laf = new Plastic3DLookAndFeel();
    	PlasticLookAndFeel.setCurrentTheme(new ExperienceBlue());
    	try {
			UIManager.setLookAndFeel(laf);
		} catch (UnsupportedLookAndFeelException e) {
			e.printStackTrace();
		}

        JFrame frame = new JFrame("Wizard Demo");
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        Wizard wizard = new Wizard(new WelcomeWizardPanel());
        wizard.addWizardListener(new WizardDemo());
        frame.setContentPane(wizard);
//        frame.pack();
        frame.setSize(450, 400);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:21,代码来源:WizardDemo.java

示例3: setCurrentTheme

import com.jgoodies.looks.plastic.PlasticLookAndFeel; //导入方法依赖的package包/类
/**
 *  Set Current Theme
 *  @param theme metal theme
 */
public static void setCurrentTheme (final PlasticTheme theme)
{
	if (theme != null)
	{
		THEME_CURRENT = theme;
		PlasticLookAndFeel.setCurrentTheme(THEME_CURRENT);
	}
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:13,代码来源:AdempiereLookAndFeel.java

示例4: SqlEditorTester

import com.jgoodies.looks.plastic.PlasticLookAndFeel; //导入方法依赖的package包/类
public SqlEditorTester() {
   	// set look and feel
   	PlasticLookAndFeel lookAndFeel = new PlasticXPLookAndFeel();
   	PlasticLookAndFeel.setCurrentTheme(new ExperienceBlue());
   	try {
		UIManager.setLookAndFeel(lookAndFeel);
	} catch (UnsupportedLookAndFeelException e) {
		e.printStackTrace();
	}

	initComponents();
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:13,代码来源:SqlEditorTester.java

示例5: setLookAndFeel

import com.jgoodies.looks.plastic.PlasticLookAndFeel; //导入方法依赖的package包/类
private void setLookAndFeel() {
    try {
        PlasticLookAndFeel.setCurrentTheme(new ExperienceBlue());
        UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
    } catch (UnsupportedLookAndFeelException e) {
        e.printStackTrace();
        LOG.error(e.getMessage(), e);
    }
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:10,代码来源:NextReports.java


注:本文中的com.jgoodies.looks.plastic.PlasticLookAndFeel.setCurrentTheme方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。