本文整理匯總了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);
}