`
hendryxu
  • 浏览: 121714 次
  • 来自: ...
最近访客 更多访客>>
社区版块
存档分类
最新评论

如何使 Eclipse(SWT 程序)能够使用 XP 系统外观?

    博客分类:
  • swt
阅读更多
Eclipse_Turn_On_XP_Skin.txt

如何使 Eclipse(SWT 程序)能够使用 XP 系统外观?

Q: How do I make SWT show the Windows XP skins?
A: In order for an application to show the Windows XP skins, 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.

http://www.eclipse.org/swt/javaw.exe.manifest

或者下载这个:

javaw.exe.manifest.rar  1KB

在 Windows XP 系统下, 一般我们用的 Eclipse 的按钮就是像 Windows 2000 下面那样的方块按钮, 不能使用 XP 的系统外观主题, 如何让 Eclipse 也能显示现代的 XP 外观呢, 例如有的用户喜欢的苹果桌面主题呢?
长话短说就是放这个链接所指的文件 javaw.exe.manifest 到 javaw.exe 所在的目录下, 具体可能位置为:
c:\windows\system32\ (如果你安装的时候选择了 JRE, 这里将有一个 java.exe 和 javaw.exe);
c:\Program Files\Java\JRE1.xxx\bin\ (同上);
c:\jdk1.4.2\jre\bin\ (只安装了 JDK).
已经测试过了, Eclipse 3.0.1, Eclipse 3.1, Eclipse 3.2, 都可以显示最新的系统外观了.

同样的技术, 只要重命名 javaw.exe.manifest 到其它文件名, 例如 myexe.exe.manifest, 就能使一些原来不能显示 XP 外观的老式程序显示新的 XP 外观了. 目前实验成功的有: TurboLaunch, Gel 等.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics