本文整理汇总了Java中org.jvnet.substance.skin.SubstanceOfficeBlue2007LookAndFeel类的典型用法代码示例。如果您正苦于以下问题:Java SubstanceOfficeBlue2007LookAndFeel类的具体用法?Java SubstanceOfficeBlue2007LookAndFeel怎么用?Java SubstanceOfficeBlue2007LookAndFeel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SubstanceOfficeBlue2007LookAndFeel类属于org.jvnet.substance.skin包,在下文中一共展示了SubstanceOfficeBlue2007LookAndFeel类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import org.jvnet.substance.skin.SubstanceOfficeBlue2007LookAndFeel; //导入依赖的package包/类
public static void main(String[] args) {
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
try {
UIManager.setLookAndFeel(new SubstanceOfficeBlue2007LookAndFeel());
} catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
System.out.println(111);
initSetting();
MenuFrame.open();
}
示例2: UseLookAndFeelBySubstance
import org.jvnet.substance.skin.SubstanceOfficeBlue2007LookAndFeel; //导入依赖的package包/类
/**
* 使用第三方外观包
* <br/>需在Jframe创建之前调用
* <li>需导入substance.jar
* <li>设置主题 SubstanceLookAndFeel.setCurrentTheme(new SubstanceCremeTheme());
* <li>设置按钮外观 SubstanceLookAndFeel.setCurrentButtonShaper(new StandardButtonShaper());
* <li>设置边框 SubstanceLookAndFeel.setCurrentBorderPainter(new StandardBorderPainter());
* <li>设置渐变渲染 SubstanceLookAndFeel.setCurrentGradientPainter(new StandardGradientPainter());
* <li>设置标题 SubstanceLookAndFeel.setCurrentTitlePainter(new MatteHeaderPainter());
* <li>设置水印 SubstanceOfficeBlue2007LookAndFeel.setCurrentWatermark(new SubstanceMarbleVeinWatermark());
* @return SubstanceOfficeBlue2007LookAndFeel 外观包操作对象,可继续扩展
* @see UI#UseLookAndFeelBySubstance(InputStream, float)
*/
public SubstanceOfficeBlue2007LookAndFeel UseLookAndFeelBySubstance(){
return UseLookAndFeelBySubstance(null, 0);
}