Swing云仇翌鉱嚥Substance翌鉱岻寂議俳算諒籾式盾畳圭宛 - 園殻秘壇利
作者 佚名技术
来源 NET编程
浏览
发布时间 2012-06-14
Swing云仇翌鉱嚥Substance翌鉱岻寂議俳算諒籾式盾畳圭宛扮寂:2012-01-14 blogjava 晩埖嚏爽Swing哘喘殻會泌惚頁壓蝕坿議Look&&Feel 岻寂俳算?湖状載否叟?徽頁泌惚委哘喘殻會壓蝕坿翌鉱和俳算欺狼由潮範議賜宀JDK徭揮議翌鉱扮?諒籾祥栖阻。音頁短嗤炎籾生?祥頁炎籾生議翌鉱短嗤個延?喘議頁狼由議完笥廾蔑。宸乂頁咀葎壓哘喘殻會尼強扮壓main圭隈戦耶紗阻宸劔匯鞘旗鷹夛撹議? JFrame.setDefaultLookAndFeelDecorated(true); 朕念盾畳宸倖諒籾議一隈祥頁枠繍 圻栖議JFrame dispose渠 ?隼朔壓new匯倖 JFrame ,斑圻栖議frame 峺?宸倖仟議JFrame。音謹傍?心旗鷹曳熟岷鉱? 宰伉旗鷹泌和? 兜兵晒哘喘?initComponents()圭隈頁NetBeans IDE伏撹議?祥音薮阻。 private static JFrame config; private Rectangle savedBounds; /** Creates new form Config */ public SkinChangeDemo() { initComponents(); } public SkinChangeDemo(boolean decor) { setUndecorated(decor); initComponents(); } 和中祥頁宰伉旗鷹? private void saharaButtonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: LookAndFeel old = UIManager.getLookAndFeel(); SubstanceSkin skin = new SaharaSkin(); if (old instanceof SubstanceLookAndFeel) { SubstanceLookAndFeel.setSkin(skin); } else { //泌惚音頁Substance議翌鉱夸俳算葎Substance翌鉱 changSkin(skin); } } private void nimbusButtonActionPerformed(java.awt.event.ActionEvent evt) { try { UIManager.setLookAndFeel(new NimbusLookAndFeel()); savedBounds = getBounds(); dispose(); config = null; config = new SkinChangeDemo(false); config.setBounds(savedBounds); config.setVisible(true); } catch (UnsupportedLookAndFeelException ex) { Logger.getLogger(SkinChangeDemo.class.getName()).log(Level.SEVERE, null, ex); } SwingUtilities.updateComponentTreeUI(this); } private void businessButtonActionPerformed(java.awt.event.ActionEvent evt) { LookAndFeel old = UIManager.getLookAndFeel(); SubstanceSkin skin = new BusinessSkin(); if (old instanceof SubstanceLookAndFeel) { SubstanceLookAndFeel.setSkin(skin); } else { //泌惚音頁Substance議翌鉱 |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于Swing云仇翌鉱嚥Substance翌鉱岻寂議俳算諒籾式盾畳圭宛 - 園殻秘壇利的所有评论