zoukankan      html  css  js  c++  java
  • Java Swing中Substance个人比较喜欢的两种组合

    try {
                // 设置外形装饰为可装饰
                JFrame.setDefaultLookAndFeelDecorated(true);
                // 设置外观
                UIManager.setLookAndFeel(new SubstanceLookAndFeel());
                // 设置主题
                SubstanceLookAndFeel.setCurrentTheme(new SubstanceEbonyTheme());
                // 设置皮肤
                SubstanceLookAndFeel.setSkin(new NebulaBrickWallSkin());
                // SubstanceLookAndFeel.setSkin(new OfficeBlue2007Skin());
                // 设置按钮外观
                SubstanceLookAndFeel.setCurrentButtonShaper(new ClassicButtonShaper());
                // 设置水印
                SubstanceLookAndFeel.setCurrentWatermark(new SubstanceBinaryWatermark());
                // 设置边框
                SubstanceLookAndFeel.setCurrentBorderPainter(new StandardBorderPainter());
                // 设置渐变渲染
                SubstanceLookAndFeel.setCurrentGradientPainter(new StandardGradientPainter());
                // 设置标题
                SubstanceLookAndFeel.setCurrentTitlePainter(new FlatTitlePainter());
            } catch (UnsupportedLookAndFeelException ex) {
                ex.printStackTrace();
            }
    try {
                // 设置外形装饰为可装饰
                JFrame.setDefaultLookAndFeelDecorated(true);
                // 设置外观
                UIManager.setLookAndFeel(new SubstanceBusinessBlackSteelLookAndFeel());
                // 设置主题
                SubstanceLookAndFeel.setCurrentTheme(new SubstanceBottleGreenTheme());
                // 设置皮肤
                SubstanceLookAndFeel.setSkin(new FindingNemoSkin());
                // 设置按钮外观
                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();
            }

    其中第一个比较朴素,第二个比较华美!

  • 相关阅读:
    sicily 1259. Sum of Consecutive Primes
    如何用enable_shared_from_this 来得到指向自身的shared_ptr 及对enable_shared_from_this 的理解
    mac 上使用octave的plot错误的解决办法
    sicily 1003. Hit or Miss
    动态规划 -- 钢条切割
    求解最大子数组问题 -- 暴力求解 和 分治法求解
    sicily 1193. Up the Stairs
    sicily 1017. Rate of Return
    sicily 1034. Forest
    打印pid,写着玩。
  • 原文地址:https://www.cnblogs.com/tufujie/p/5449586.html
Copyright © 2011-2022 走看看