[英]How do you set the Dock Icon of a Java program?
I keep getting pointed to 我一直指着
import com.apple.eawt.Application;
but that package doesn't exist on apple's website. 但是该软件包在Apple网站上不存在。 Is there a new way? 有没有新的方法?
Yes. 是。 The class you seek is part of a Maven artifact, namely com.apple.AppleJavaExtensions
. 您要查找的类是Maven工件的一部分,即com.apple.AppleJavaExtensions
。 Either use Maven in your build, or just download the JAR of the artifact and add it to your build path--this artifact itself has no dependencies. 在您的构建中使用Maven,或者只是下载工件的JAR并将其添加到您的构建路径中-该工件本身没有依赖性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.