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();
}
其中第一个比较朴素,第二个比较华美!
Java Swing中Substance个人比较喜欢的两种组合的更多相关文章
- Java Swing中Substance常用皮肤
AutumnSkin; BusinessSkin; BusinessBlackSteelSkin; BusinessBlueSteelSkin; ChallengerDeepSkin; CremeSk ...
- Java 获取*.properties配置文件中的内容 ,常见的两种方法
import java.io.InputStream; import java.util.Enumeration; import java.util.List; import java.util.Pr ...
- 在Java Web程序中使用监听器可以通过以下两种方法
之前学习了很多涉及servlet的内容,本小结我们说一下监听器,说起监听器,编过桌面程序和手机App的都不陌生,常见的套路都是拖一个控件,然后给它绑定一个监听器,即可以对该对象的事件进行监听以便发生响 ...
- Java并发编程:线程间协作的两种方式:wait、notify、notifyAll和Condition
Java并发编程:线程间协作的两种方式:wait.notify.notifyAll和Condition 在前面我们将了很多关于同步的问题,然而在现实中,需要线程之间的协作.比如说最经典的生产者-消费者 ...
- Eclipse中SVN的安装步骤(两种)和使用方法
Eclipse中SVN的安装步骤(两种)和使用方法 一.给Eclipse安装SVN,最常见的有两种方式:手动方式和使用安装向导方式.具体步骤如下: 方式一:手动安装 1.下载最新的Eclipse,我的 ...
- 19、Java并发编程:线程间协作的两种方式:wait、notify、notifyAll和Condition
Java并发编程:线程间协作的两种方式:wait.notify.notifyAll和Condition 在前面我们将了很多关于同步的问题,然而在现实中,需要线程之间的协作.比如说最经典的生产者-消费者 ...
- Java去除掉HTML里面所有标签的两种方法——开源jar包和自己写正则表达式
Java去除掉HTML里面所有标签,主要就两种,要么用开源的jar处理,要么就自己写正则表达式.自己写的话,可能处理不全一些自定义的标签.企业应用基本都是能找开源就找开源,实在不行才自己写…… 1,开 ...
- [转]MFC子线程中更新控件内容的两种办法
一.概述 每个系统中都有线程(至少都有一个主线程),而线程最重要的作用就是并行处理,提高软件的并发率.针对界面来说,还能提高界面的响应能力.一般的,为了应用的稳定性,在数据处理等耗时操作会单独在一个线 ...
- python中字典的循环遍历的两种方式
开发中经常会用到对于字典.列表等数据的循环遍历,但是python中对于字典的遍历对于很多初学者来讲非常陌生,今天就来讲一下python中字典的循环遍历的两种方式. 注意: python2和python ...
随机推荐
- iOS 进阶 第五天(0330)
0330 cell的一些常见属性 设置cell右边指示器的类型 设置cell右边指示器的view cell的backgroundView和selectedBackgroundView cell的bac ...
- C# 获取数组的子集
private static void PrintSubItems(int[] source) { int i = 1; int total = int.Parse(Math.Pow(2, sourc ...
- c语言编程之队列(链表实现)
用链表实现了队列,完成了队列的入队和出队功能. #include"stdio.h" typedef int element; typedef struct Node{ struct ...
- 玩转SmartQQ之登录
SmartQQ是腾讯新出的一个WebQQ,登录地址是:http://w.qq.com/,目前之前的WebQQ可以继续使用,登录地址:http://web2.qq.com/webqq.html,Smar ...
- 在Visual Studio中快速启动调试Web应用程序
原文:http://blog.csdn.net/effun/article/details/2638535 到2005,Visual Studio在启动调试的功能上进行了一些改善,不过因为只是简单的一 ...
- 巨大bug
//数据结构关于课程设计--------图书馆管理系统的设计 #include <stdio.h> #include <stdlib.h> #include <strin ...
- 3243: [Noi2013]向量内积 - BZOJ
Description 两个d 维向量A=[a1,a2,...,ad]与B=[b1,b2,...,bd]的内积为其相对应维度的权值的乘积和,即: 现有 n 个d 维向量x1,...,xn ,小喵喵想知 ...
- NOI2014 全国互测Round2
数据包:http://pan.baidu.com/s/1pJNSkL9 T1: 我们先直接用矩阵快速幂暴力 首先是0维,f1=1,f2=1 然后推出下一维的f1'和f2' 下一维的f1'和f2'其实就 ...
- CI_Autocomplete_2.0.php轻松实现Bebeans与Codeigniter的智能提示
在你的NetBeans项目下建立一个CI_Autocomplete_2.0.php的文件,粘贴以下代码:(codeigniter太旧了,其实性能不行,应该没人更了,换了吧,别学这玩意了,坑人) < ...
- 移动端页面使用rem来做适配
文/九彩拼盘(简书作者)原文链接:http://www.jianshu.com/p/eb05c775d3c6著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”. rem介绍 rem(font ...