Topic: 怎样使自己的程序使用Jbuilder9里面的borland的LookandFeel

  Print this page

1.怎样使自己的程序使用Jbuilder9里面的borland的LookandFeel Copy to clipboard
Posted by: waspxyz
Posted on: 2003-06-26 15:33

谢谢

2.Re:怎样使自己的程序使用Jbuilder9里面的borland的LookandFeel [Re: waspxyz] Copy to clipboard
Posted by: stevendu
Posted on: 2003-07-03 15:43

下面是使用Alloy的LookAndFell的方法:
try {
com.incors.plaf.alloy.themes.CustomFontTheme fontTheme = new com.incors.plaf.alloy.themes.CustomFontTheme(new String[] {"Tahoma", "Verdana","Helvetica"}, 11, 10);
com.incors.plaf.alloy.AlloyTheme theme = new com.incors.plaf.alloy.themes.bedouin.BedouinTheme( fontTheme );
javax.swing.LookAndFeel alloyLnF = new com.incors.plaf.alloy.AlloyLookAndFeel(theme);
javax.swing.UIManager.setLookAndFeel(alloyLnF);
}
catch (javax.swing.UnsupportedLookAndFeelException ex) {
}
使用JB的自带LookAndFeel更加简单:
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
or
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923