public static void main(String[] args) {
try {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
} catch (Exception e) { }
new SwingApplication(); //Create and show the GUI.
}UIManager.getCrossPlatformLookAndFeelClassName()UIManager.getSystemLookAndFeelClassName()"com.sun.java.swing.plaf.gtk.GTKLookAndFeel""javax.swing.plaf.metal.MetalLookAndFeel""com.sun.java.swing.plaf.windows.WindowsLookAndFeel""com.sun.java.swing.plaf.motif.MotifLookAndFeel"
UIManager.setLookAndFeel(lnfName);
SwingUtilities.updateComponentTreeUI(frame);
frame.pack();

523




被折叠的 条评论
为什么被折叠?



