http://www.eclipse.org/downloads/index.php
SWT Binary and Source 
These drops contain the SWT libraries and source for standalone SWT application development. For examples of standalone SWT applications refer to the snippets section of the SWT Component page. To run a standalone SWT application, add the swt jar(s) to the classpath and add the directory/folder for the SWT JNI library to the java.library.path. For example, if you extract the download below to C:\SWT you would launch the HelloWorld application with the following command:  java -classpath C:\SWT\swt.jar;C:\MyApp\helloworld.jar -Djava.library.path=C:\SWT 
HelloWorld 
 
Status Platform Download File 
 Windows 98/ME/2000/XP (http)   (ftp) swt-3.0.1-win32.zip (md5) 
 Windows CE (ARM PocketPC) (Instructions) (http)   (ftp) swt-3.0.1-win32-ce-arm-ppc.zip (md5) 
 Windows CE (ARM PocketPC, J2ME profile) (Instructions) (http)   (ftp) swt-3.0.1-win32-ce-arm-ppc-j2me.zip (md5) 
 Linux (x86/Motif) (Supported Versions) (http)   (ftp) swt-3.0.1-linux-motif.zip (md5) 
 Linux (x86/GTK 2) (Supported Versions) (http)   (ftp) swt-3.0.1-linux-gtk.zip (md5) 
 Linux (AMD 64/GTK 2) (Instructions) (http)   (ftp) swt-3.0.1-linux-gtk-amd64.zip (md5) 
 Solaris 8 (SPARC/Motif) (http)   (ftp) swt-3.0.1-solaris-motif.zip (md5) 
 QNX (x86/Photon) (http)   (ftp) swt-3.0.1-qnx-photon.zip (md5) 
 AIX (PPC/Motif) (http)   (ftp) swt-3.0.1-aix-motif.zip (md5) 
 HP-UX (HP9000/Motif) (http)   (ftp) swt-3.0.1-hpux-motif.zip (md5) 
 Mac OSX (Mac/Carbon) (Supported Versions) (http)   (ftp) swt-3.0.1-macosx-carbon.zip (md5) 
  
IBM主推的gui技术,不妨试试

解决方案 »

  1.   

    如果你的程序在支持MAC Look and Feel的计算机上运行程序,在程序中加入:
    String lookAndFeel = "com.sun.java.swing.plaf.mac.MacLookAndFeel";
    try {
        javax.swing.UIManager.setLookAndFeel(lookAndFeel);
    } catch (Exception ex) {
        System.out.println("Failed loading L&F: " + currentLookAndFeel);
        System.out.println(ex);
    }
    但如果你使用WINDOWS作操作系统的话,很可能不支持MAC的Look and Feel,建议自己写一套组件的paint方法,实现类MAC的组件绘制,也可以像楼上所说,或类似的在网上找到类似的第三方的程序来支持MAC Look and Feel。
      

  2.   

    忘了说
    不打算用swt
    类似的第三方程序,能否有人做过呢?
    给点详细的资料呢?
      

  3.   

    "javax.swing.plaf.metal.MetalLookAndFeel" 
    Specifies the Java Look & Feel. (The codename for this look and feel was Metal.) This string is the value returned by the getCrossPlatformLookAndFeelClassName method. 
    "com.sun.java.swing.plaf.windows.WindowsLookAndFeel" 
    Specifies the Windows Look & Feel. Currently, you can use this look and feel only on Win32 systems. 
    "com.sun.java.swing.plaf.motif.MotifLookAndFeel" 
    Specifies the CDE/Motif Look & Feel. This look and feel can be used on any platform. 
    "javax.swing.plaf.mac.MacLookAndFeel" 
    Specifies the Mac OS Look & Feel, which can be used only on Mac OS platforms. 引自:http://www.iam.ubc.ca/guides/javatut99/uiswing/misc/plaf.html
      

  4.   

    强烈推荐,这个会对你有帮助:
    http://java.sun.com/products/jfc/overview.html#6
      

  5.   

    "javax.swing.plaf.metal.MetalLookAndFeel" 
    Specifies the Java Look & Feel. (The codename for this look and feel was
      

  6.   

    可以在JDK/JRE/LIB/目录下提供swing.properties文件 在文件中把属性swing.defultlaf设置为你想要的感官的类名
      

  7.   

    to ForestOcean(森林之洋) 
    http://java.sun.com/products/jfc/overview.html#6
    这个里面讲的mac风格,只能运行在mac平台上才有效那么要在windows系统上做出mac风格的程序,这个直接换lookandfeel的方法,就不可行了。除此之外,还有别的办法吗?
      

  8.   

    经过数小时的战斗,在自己的计算机上编一程序:import javax.swing.*;
    import com.sun.java.swing.plaf.mac.MacLookAndFeel;public class A {
       public static void main(String[] args) {
          try {
             UIManager.setLookAndFeel("com.sun.java.swing.plaf.mac.MacLookAndFeel");
          } catch ( Exception e ) {
              System.out.println ("Couldn't load Mac L&F" + e);
          }
          JFrame frame = new JFrame("Test");
       }
    }
    该程序编译无误,但执行它时返回如下异常:Couldn't load Mac L&F:javax.swing.UnsupportedLookAndFeelException: [The Apple Macintosh(tm) Look and Feel - com.sun.java.swing.plaf.mac.MacLookAndFeel] not supported on this platform
    唉,无果啊!PS:我看的东东好像门路不对啊,一些地址给你,我也想找到这方面的东东,很难啊。但我觉得也许接近问题的重点了。PPSS:
    http://www.ing.unitn.it/~luttero/javaonMac/index.html
    http://www.nationalgallery.org.uk/home/zoom_mac8.htm
    http://home.no.net/jlog/README23.html
    http://www.comp.nus.edu.sg/~cs3283/ftp/Java/swingConnect/plaf_papers/mac_l-f/mac_l-f.html