本文整理汇总了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();
}
示例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);
}
示例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);
}
}
示例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();
}
示例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);
}
}