Substance风格实例大全javaswing皮肤风格大全(原)

转载请注明来路:http://www.cnblogs.com/langtianya/

下图是所支持的设置

Substance风格实例大全javaswing皮肤风格大全(原)

下面把上面的每一个选项的子选项进行试验

substance皮肤

AutumnSkin

Substance风格实例大全javaswing皮肤风格大全(原)

BusinessSkin

Substance风格实例大全javaswing皮肤风格大全(原)

BusinessBlackSteelSkin

Substance风格实例大全javaswing皮肤风格大全(原)

BusinessBlueSteelSkin

Substance风格实例大全javaswing皮肤风格大全(原)

 

ChallengerDeepSkin

Substance风格实例大全javaswing皮肤风格大全(原)

CremeSkin

Substance风格实例大全javaswing皮肤风格大全(原)

EmeraldDuskSkin

Substance风格实例大全javaswing皮肤风格大全(原)

FieldOfWheatSkin

Substance风格实例大全javaswing皮肤风格大全(原)

FindingNemoSkin

Substance风格实例大全javaswing皮肤风格大全(原)

GreenMagicSkin

Substance风格实例大全javaswing皮肤风格大全(原)

MagmaSkin

Substance风格实例大全javaswing皮肤风格大全(原)

MangoSkin

Substance风格实例大全javaswing皮肤风格大全(原)

MistAquaSkin

Substance风格实例大全javaswing皮肤风格大全(原)

MistSilverSkin

Substance风格实例大全javaswing皮肤风格大全(原)

ModerateSkin

Substance风格实例大全javaswing皮肤风格大全(原)

NebulaBrickWallSkin

Substance风格实例大全javaswing皮肤风格大全(原)

 

NebulaBrickWallSkin

Substance风格实例大全javaswing皮肤风格大全(原)

OfficeBlue2007Skin

Substance风格实例大全javaswing皮肤风格大全(原)

OfficeSilver2007Skin

Substance风格实例大全javaswing皮肤风格大全(原)

还有几个也没什么特别的,也就不罗列了

上面的是皮肤实例,还可以结合主题,水印等进行排列组合的搭配,我就不一一写出来了

主题:

Substance风格实例大全javaswing皮肤风格大全(原)

水印:

Substance风格实例大全javaswing皮肤风格大全(原)

.........

组合1:主题:明亮-aqua, 水印:Stripe, 按钮造型:standard, title:matteSubstance风格实例大全javaswing皮肤风格大全(原)

组合2:主题:明亮-bottle green, 水印:Stripe, 按钮造型:standard, title:matte

Substance风格实例大全javaswing皮肤风格大全(原)

组合2效果的核心代码

Substance风格实例大全javaswing皮肤风格大全(原)
  try {
//设置外观  
UIManager.setLookAndFeel(new SubstanceBusinessBlackSteelLookAndFeel()); JFrame.setDefaultLookAndFeelDecorated(true); //设置主题 SubstanceLookAndFeel.setCurrentTheme(new SubstanceBottleGreenTheme()); //设置按钮外观 SubstanceLookAndFeel.setCurrentButtonShaper(new StandardButtonShaper()); //设置水印 SubstanceLookAndFeel.setCurrentWatermark(new SubstanceStripeWatermark()); //设置边框 SubstanceLookAndFeel.setCurrentBorderPainter(new StandardBorderPainter()); //设置渐变渲染 SubstanceLookAndFeel.setCurrentGradientPainter(new StandardGradientPainter()); //设置标题 SubstanceLookAndFeel.setCurrentTitlePainter(new MatteHeaderPainter()); } catch (UnsupportedLookAndFeelException ex) { ex.printStackTrace(); }
Substance风格实例大全javaswing皮肤风格大全(原)

 

Substance风格实例大全javaswing皮肤风格大全(原)

自定义水印代码

Substance风格实例大全javaswing皮肤风格大全(原)
    //5.2版本
                    //http://www.blogjava.net/gml520/archive/2009/05/23/277603.html
               UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceOfficeBlue2007LookAndFeel");
                    SubstanceImageWatermark watermark = new SubstanceImageWatermark("001.jpg");
                    System.out.println(watermark);
                    watermark.setKind(SubstanceConstants.ImageWatermarkKind.SCREEN_CENTER_SCALE);
                  SubstanceSkin skin = new SaharaSkin().withWatermark(watermark); //初始化有水印的皮肤

                    UIManager.setLookAndFeel(new SubstanceOfficeBlue2007LookAndFeel());
                    SubstanceLookAndFeel.setSkin(skin); //设置皮肤
Substance风格实例大全javaswing皮肤风格大全(原)

 

Substance风格实例大全javaswing皮肤风格大全(原),布布扣,bubuko.com

Substance风格实例大全javaswing皮肤风格大全(原)

上一篇:Spring-MVC入门(一):入门实例 (重点学习)


下一篇:java 线程池