以前挺麻烦的,现在非常简单,使用swt3.2就ok了:)
- Q: How do I make SWT use the Windows XP themes?
- A: In order for an application to use Windows XP themes, there must be a manifest file
located in the same place as the executable that launches the application.
Here is a sample manifest file to download.
The name of the manifest file must match the name of the executable.
In the case of eclipse, the executable is javaw.exe and the manifest file
must have the name javaw.exe.manifest. The manifest file must be in the
jre\bin folder for the VM you use to launch Eclipse. Note: the
eclipse.exe executable does not launch Eclipse; eclipse.exe
displays a splash screen and then invokes the Java VM.
Note: As of SWT 3.2, the manifest file is no longer needed.