这就是Jdk1.4.2下可以使用的:
try {
UIManager.setLookAndFeel( "com.sun.java.swing.plaf.mac.MacLookAndFeel" );
SwingUtilities.updateComponentTreeUI( c );//不更新是看不到效果的
}
catch ( Exception ex ) {
JOptionPane.showMessageDialog( null,
"setLookAndFeel时出错了:( Errormsg:" + ex,
"setLookAndFeel",
JOptionPane.INFORMATION_MESSAGE);
}
try {
UIManager.setLookAndFeel( "com.sun.java.swing.plaf.mac.MacLookAndFeel" );
SwingUtilities.updateComponentTreeUI( c );//不更新是看不到效果的
}
catch ( Exception ex ) {
JOptionPane.showMessageDialog( null,
"setLookAndFeel时出错了:( Errormsg:" + ex,
"setLookAndFeel",
JOptionPane.INFORMATION_MESSAGE);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货