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

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 等.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值