青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

逛奔的蝸牛

我不聰明,但我會很努力

   ::  :: 新隨筆 ::  ::  :: 管理 ::

Nimbus – A New Look-and-Feel for Swing

Nimbus is the name of a look-and-feel designed by Sun for the Java Desktop System; it’s implemented as a GTK theme in the latest Solaris 11 pre-release builds. In 2007, this project was started by Sun’s Swing Team and Ben Galbraith to build a pure Java implementation of this look and feel under a opensource licence. Later on it was decided to pull Nimbus LAF in to the core of the Java platform as part of version 6u10. Nimbus is now available in the beta version of 6u10 available at http://download.java.net/jdk6/.

The version in the JDK took some of the concepts that were experimented with in the project but is a complete new codebase. It is still based on Synth LAF but is 100% pure vector based using no images. This project is dead for the time being until Nimbus is made opensource through Open JDK. Once that happens it might be pulled back into the project so that we can work on a backport jar that could run on older Java versions than 6u10.

Nimbus is a new cross-platform Swing look & feel, which packs many features and enhancements. It is not just another look and feel but with some exciting features:

2D Vector
All of Nimbus is rendered with 2D vector graphics, there is not one image even for all the icons. This means that the whole of Nimbus is just 56k as a packed JAR which is pretty impressive for a whole rich look and feel.
High DPI Ready
As the whole of Nimbus is drawn with shapes and gradients it can be scaled to any resolution.
Based on Painters
All painting for components is done with simple stateless implementations of the Painter interface. These painters are stored in the UIDefaults table so they can be replaced if you would like to change the look of components or can be used in your own components if you would like to create a custom table header for example that looks the same as the standard Nimbus one plus something extra.
Customizable
All colors, icons and fonts are derived off UIDefaults keys so the whole UI can be customized by changing values in the UIDefaults table.
Easy to skin 3rd party components to fit in
All of the colors, fonts, icons, borders and painters are exposed through the UIDefaults table which means they are available to your 3rd party components to help you skin them in a Nimbus style.

Usage

To use the Nimbus Look & Feel, simply call the setLookAndFeel methods from UIManager:

        try {
            UIManager.setLookAndFeel(
                    "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
        } catch (UnsupportedLookAndFeelException e) {
            // handle exception
        } catch (ClassNotFoundException e) {
            // handle exception
        } catch (InstantiationException e) {
            // handle exception
        } catch (IllegalAccessException e) {
            // handle exception
        }

Alternatively, you can either specify the L&F from swing.properties file or from a command line. To use the swing.properties files, specify the swing.defaultlaf property. The file (if exists) is located under <jre install>\lib:

# Swing properties
swing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel

To specify the L&F from command line, use the following when running your Java application:

-Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel   


From: http://javaforweb.wordpress.com/2008/05/05/nimbus-a-new-look-and-feel-for-swing/


public static void main(String[] args) {

        try {

            UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");

        } catch (UnsupportedLookAndFeelException e) {

            // handle exception

        } catch (ClassNotFoundException e) {

            // handle exception

        } catch (InstantiationException e) {

            // handle exception

        } catch (IllegalAccessException e) {

            // handle exception

        }


        SwingUtilities.invokeLater(new Runnable() {

            @Override

            public void run() {

                createGUIAndShow();

            }

        });

    }

posted on 2010-12-26 04:34 逛奔的蝸牛 閱讀(2981) 評論(0)  編輯 收藏 引用 所屬分類: Java
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            91久久久久| 99在线精品观看| 欧美亚洲免费电影| 国产精品视频精品视频| 亚洲男人第一av网站| 宅男精品视频| 国产女人精品视频| 久久国产精品亚洲77777| 欧美一区二区日韩一区二区| 国产在线观看91精品一区| 久久久久国产精品人| 久久久综合激的五月天| 亚洲精品日韩在线观看| 亚洲精品女av网站| 免费视频亚洲| 在线视频精品一区| 亚洲女同性videos| 1204国产成人精品视频| 91久久久亚洲精品| 国产精品欧美久久| 久久精品综合网| 欧美第十八页| 亚洲欧美日韩国产中文在线| 欧美一区二区视频97| 亚洲国产天堂久久综合| 亚洲视频精品| 亚洲大胆视频| 日韩一级二级三级| 韩国欧美国产1区| 亚洲国产福利在线| 国产精品免费看| 欧美电影资源| 国产精品综合视频| 亚洲国产成人不卡| 国产日韩欧美一区二区三区四区| 欧美成人a视频| 国产乱码精品| 亚洲国产美女精品久久久久∴| 国产精品国产自产拍高清av| 女主播福利一区| 国产精品裸体一区二区三区| 欧美高清在线精品一区| 国产九九精品视频| 亚洲精品国久久99热| 国产在线不卡| 亚洲一区免费网站| 99视频日韩| 久久综合国产精品| 久久精品视频亚洲| 国产精品免费小视频| 亚洲美女性视频| 国内精品视频666| 亚洲视频 欧洲视频| 99国产欧美久久久精品| 麻豆国产va免费精品高清在线| 欧美在线高清视频| 国产精品推荐精品| 日韩亚洲欧美高清| 一区二区激情| 欧美日韩小视频| 亚洲欧洲日本国产| 亚洲欧洲一区二区天堂久久| 久久精品亚洲热| 久久理论片午夜琪琪电影网| 国产欧美一区二区三区沐欲 | 国产精品剧情在线亚洲| 亚洲精品久久久久久久久久久久| 亚洲高清免费在线| 嫩草成人www欧美| 欧美成人蜜桃| 最新日韩精品| 欧美精品午夜视频| 亚洲免费高清| 亚洲综合国产| 国产日本欧美视频| 性久久久久久久久| 久久综合电影| 亚洲国产精品精华液2区45| 久久伊伊香蕉| 亚洲二区免费| 这里只有精品视频在线| 欧美性做爰毛片| 午夜精品久久久久99热蜜桃导演| 久久精品30| 亚洲第一区在线| 蜜臀av一级做a爰片久久| 亚洲欧洲一区| 性8sex亚洲区入口| 激情小说另类小说亚洲欧美 | 99热精品在线| 欧美在线视频a| 狠狠色丁香婷婷综合影院| 免费在线日韩av| 一本色道久久综合| 欧美在线免费一级片| 在线观看视频日韩| 欧美日韩精品不卡| 午夜精品国产精品大乳美女| 蜜桃av噜噜一区二区三区| 99精品国产在热久久| 国产女人aaa级久久久级| 老司机免费视频久久| 99视频有精品| 久久人91精品久久久久久不卡 | 国产精品高潮呻吟久久av无限 | 亚洲精品在线免费观看视频| 亚洲在线一区| 亚洲黑丝在线| 国产精品视频网| 老司机久久99久久精品播放免费| 日韩视频永久免费观看| 久久不见久久见免费视频1| 91久久久精品| 国产日韩精品在线| 欧美日韩第一区| 久久婷婷久久| 亚洲欧美福利一区二区| 欧美激情在线狂野欧美精品| 亚洲免费人成在线视频观看| 亚洲国产经典视频| 国产精品亚洲一区| 欧美精品一区二区三区四区| 久久国产精品久久w女人spa| 亚洲精品久久7777| 欧美激情中文字幕乱码免费| 欧美一区成人| 亚洲自拍16p| 日韩网站免费观看| 最新国产乱人伦偷精品免费网站| 国产欧美精品在线播放| 欧美日韩伦理在线免费| 免费日韩视频| 久久三级视频| 久久精品国产第一区二区三区最新章节| 亚洲精品中文字| 亚洲国产精品久久久久| 欧美成人一区二免费视频软件| 久久久国产精彩视频美女艺术照福利| 国产精品99久久不卡二区| 91久久久久久久久| 亚洲国产成人不卡| 伊人久久婷婷| 黄色亚洲在线| 永久域名在线精品| 国内精品久久久久影院薰衣草| 国产欧美日韩亚洲一区二区三区| 欧美日韩综合久久| 国产精品劲爆视频| 欧美午夜性色大片在线观看| 欧美色精品在线视频| 欧美性事在线| 国产欧美日韩亚洲精品| 国产欧美日韩在线播放| 国产日韩欧美在线看| 国产日韩精品电影| 狠狠色狠狠色综合| 91久久亚洲| 一本一本久久a久久精品综合妖精 一本一本久久a久久精品综合麻豆 | 欧美一区二区视频免费观看| 欧美亚洲一级| 久久国产日韩| 美女国内精品自产拍在线播放| 久久综合中文字幕| 欧美精品成人91久久久久久久| 欧美激情日韩| 国产精品久久久久久久久久尿| 国产精品毛片| 韩国精品在线观看| 亚洲激情社区| 亚洲视频www| 久久国产精品99久久久久久老狼| 久久精品一区二区| 亚洲第一精品福利| 亚洲视频在线视频| 久久国产欧美| 欧美福利视频一区| 国产精品一区二区三区四区五区 | 国产精品国产三级国产 | 男人的天堂成人在线| 欧美日韩一区二区三区在线 | 久久久久国产免费免费| 欧美高清在线视频观看不卡| 国产精品久久久久久福利一牛影视| 国产女人18毛片水18精品| 亚洲国产精品一区二区www| 国产精品99久久久久久久vr | 欧美亚洲网站| 亚洲成在人线av| 亚洲毛片av| 久久本道综合色狠狠五月| 欧美国产视频日韩| 国模私拍一区二区三区| 99精品欧美一区二区三区综合在线| 亚洲欧美一区二区三区久久| 欧美成人一区在线| 性久久久久久久久久久久| 欧美国产激情二区三区| 国产日韩亚洲欧美精品| 一本久久综合亚洲鲁鲁五月天| 久久婷婷综合激情|