imbus Look and Feel
When the venerable Metal look and feel for Swing first debuted, its main aesthetic competition was the Windows 95 interface. Given the state of graphical user interfaces a decade ago, Metal was an attractive and elegant alternative to the other common interfaces of the time.
The updated Ocean theme in Java SE 5 helped to keep Metal a viable choice up to the present day, but it's time for Swing's cross-platform look and feel to get an overhaul.
Enter the Nimbus Look and Feel. A brand new, modern look and feel based on Synth, Nimbus provides a polished look to applications which choose to use it. And because Nimbus is drawn entirely using Java 2D vector graphics, rather than static bitmaps, it's tiny (only 56KB!) and can be rendered at arbitrary resolutions.
[img] src="http://java.sun.com/developer/technicalArticles/javase/java6u10/images/meta.gif" width="654" border="0" height="400"[/img]
Figure 3: SwingSet3 in Metal
[img] src="http://java.sun.com/developer/technicalArticles/javase/java6u10/images/nimbus.gif" width="654" border="0" height="400"[/img]
Figure 4: SwingSet3 in Nimbus
For compatibility reasons, Metal is still the default Swing look and feel, but updating applications to use Nimbus couldn't be simpler. It only takes a single line of code:
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
You can also force Nimbus to be the default look and feel by specifying -Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel. on the command line. A more permanent way to set the property is to add
swing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
to the file <JAVA_HOME>/lib/swing.properties. You will have to create the swing.properties file if it does not already exist.
For more information on usage of Nimbus, please see 6u10 Release Notes.
分享到:
- 2008-11-29 21:14
- 浏览 2208
- 评论(1)
- 论坛回复 / 浏览 (1 / 3091)
- 查看更多
相关推荐
Nimbus Screenshot and Screencas最强大的chrome截屏、录屏、录音插件!
The Nimbus Look and Feel has been moved from the com.sun.java.swing package to the javax.swing package; see the javax.swing.plaf.nimbus package. Mixing Heavyweight and Lightweight Components is ...
赠送jar包:nimbus-jose-jwt-4.41.1.jar; 赠送原API文档:nimbus-jose-jwt-4.41.1-javadoc.jar; 赠送源代码:nimbus-jose-jwt-4.41.1-sources.jar; 赠送Maven依赖信息文件:nimbus-jose-jwt-4.41.1.pom; 包含...
nimbus-sans-l.zip nimbus-sans-l.zip nimbus-sans-l.zip nimbus-sans-l.zip
赠送jar包:nimbus-jose-jwt-3.9.jar; 赠送原API文档:nimbus-jose-jwt-3.9-javadoc.jar; 赠送源代码:nimbus-jose-jwt-3.9-sources.jar; 赠送Maven依赖信息文件:nimbus-jose-jwt-3.9.pom; 包含翻译后的API文档...
业务流程管理(NIMBUS).pptx
windows系统下谷歌浏览器最好用的滚动截屏脚本,Nimbus Screenshot是一款主要用于网页截图的chrome浏览器插件。nimbus screenshot crx拥有非常强大的截图功能,同时支持二次编辑,操作方式便捷,绿色小巧,不占内存...
赠送jar包:nimbus-jose-jwt-4.41.1.jar; 赠送原API文档:nimbus-jose-jwt-4.41.1-javadoc.jar; 赠送源代码:nimbus-jose-jwt-4.41.1-sources.jar; 赠送Maven依赖信息文件:nimbus-jose-jwt-4.41.1.pom; 包含...
注:下文中的 *** 代表文件名中的组件名称。 # 包含: 中文-英文对照文档:【***-javadoc-API文档-中文(简体)-英语-对照版.zip】 jar包下载地址:【***.jar下载地址(官方地址+国内镜像地址).txt】 ...
python库。 资源全名:nimbus-python-0.0.5.tar.gz
screencast-nimbus-capture-2021.03.14-17_35_59.webm
python库。 资源全名:nimbus_scrapy-3.1.4-py2.py3-none-any.whl
雨云Nimbus是一个.NET客户端库,可提供对常见消息传递框架的轻松抽象。使用Nimbus开发有关更多信息,请访问或我们的开发Nimbus本身git clone < this>docker-compose up -ddotnet test开发基础设施有两个docker-...
Nimbus 是一个 Java 框架,可以轻松部署和测试无服务器应用程序。安装Nimbus 通过 maven 提供,并托管在 maven 中央存储库中。 首先,您需要将 nimbus-core 依赖项添加到您的 pom.xml 文件中。 这增加了注释处理器和...
来源:Licence:Apache ... 小编注:这是著名的Nimbus框架的一个demo例子。下载本代码之后,还必须下载Nimbus的源码(https:///jverkoey/nimbus)才能正确编译。 Code4App编译测试,适用环境:Xcode 4.3, iOS 5.0。
查看使用Nimbus Web Clipper可以做的所有事情:*捕获整个网页并将其存储以备将来使用*仅捕获网页的一部分*在保存Web剪辑之前突出显示文本*将任务添加到剪辑之前,将其发送到同事*从网页中剪切图像*从PDF文件中剪切并...
Nimbus Eth2(信标链) Nimbus信标链是即将到来的以太坊宁静升级(又名Eth2)的信标链组件的研究实现。文献资料您可以在找到运行信标节点并用作验证程序所需的信息。 特别是,将帮助您连接到Pyrmont Testnet和eth2 ...
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
基于nimbus开发的新浪微博客户端框架.zip,基于nimbus开发的新浪微博客户端框架