开发者

Display the version number in Java Cache Viewer

I'm developing an applet and I've recently added a MANIFEST file to it for version information.

My original intent was to see the version of the applet shown in the Java Applet Cache Viewer...

Java Control Panel -> Temporary Internet Files -> Settings... -> View Applets...

But i开发者_StackOverflown the cache viewer, it doesn't show the version number. What I'm doing wrong?


The Java Applet Cache Viewer was not designed for that. If you wish to display the information in your own applet at user request, pop a JOptionPane with the following information.

Package pckg = this.getClass().getPackage();
String title = pckg.getImplementationTitle();
String vendor = pckg.getImplementationVendor();
String version = pckg.getImplementationVersion();

Note that the manifest information is available on a per package basis, while a Jar might contain several applets and many packages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜