你能在Windows操作系统上使用Java进行图标叠加吗? [英] Can you do icon overlays using Java on Windows OS

查看:170
本文介绍了你能在Windows操作系统上使用Java进行图标叠加吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows上使用Java来制作徽章或图标叠加层。基本上驱动器上的某些文件具有覆盖,具体取决于这些文件所处的状态。这应该通过Windows资源管理器可见。类似于DropBox如何做事的东西。这可能吗?

I would like to manupilate badges or icon overlays using Java on windows. Basically some files on the drive to have overlays depending what state those files are in. This should be visible through windows explorer. Something simillar to how DropBox does things. Is that possible?

我看过几篇关于这个主题的文章,但没有一篇文章使用过Java。它们似乎都使用C ++或C#或COM对象。我一直在寻找Windows的Java解决方案。当然,我也想在Mac上使用Java解决方案。不确定这是否可行,但在我放弃之前我想我会问。

I've seen several articles on this topic but none of them use Java. They all seem to use C++ or C# or COM objects. I was looking for a Java solution for windows. Of course I'd like to have a Java solution on Mac's too. Not sure if this is possible but before I give up I thought I ask.

推荐答案

你可能可以在Windows上设置它,甚至可能在OS X上,但你必须为每个编写几乎完全独立的代码。 Windows的Explorer覆盖界面可能是通过COM进行的,因此您必须使用JNI让您的Java代码与资源管理器进行通信。对于Mac,您可能必须在运行时将代码注入Finder,需要更多的本机代码和完全不同于Windows的本机代码。说实话,你可能最好用便携式C或C ++编写,然后添加你需要的任何接口。

You probably could get it set up on Windows, maybe even on OS X, but you'd have to write almost entirely separate code for each. Windows's interface for Explorer overlays is probably through COM, so you'd have to use JNI to get your Java code to talk to Explorer. For the Mac, you'd probably have to inject your code into the Finder at runtime, requiring more native code and completely different native code than Windows. To be honest, you're probably better off writing in portable C or C++ and then tacking on whatever interface you need.

tl;博士:你可能在Windows上,但这并不容易。你可能不能在Mac上,至少如果你想使用Java。

tl;dr: You probably can on Windows, but it won't be easy. You probably can't on Mac, at least if you want to use Java.

这篇关于你能在Windows操作系统上使用Java进行图标叠加吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆