本文介绍了Java小程序隐藏状态栏的appletviewer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Java小程序,这意味着在JDK的appletviewer要玩的游戏,我已经遇到的问题。在小应用程序底部的状态栏(棕一个写着小程序开始)很糟糕的游戏玩以上。在推荐的:
我添加了许可showWindowWithoutWarningBanner。然而,在此添加到我的安全策略:许可java.awt.AWTPermissionshowWindowWithoutWarningBanner;
于是我打开小程序,但状态栏仍然存在。我可以证实,正在使用的安全策略文件,因为我能够读取并使用相同的策略写入文件。
第二尝试,尝试设置状态使用 setStatus(空)为空;
来看看是否能够完成这项工作,但只去掉了小程序已启动的文字,棕状态栏仍然存在。如果我做错了任何想法,或者如果有任何接下来要采取的步骤?
解决方案
- Applets are more difficult to develop and deploy than applications. Every other week there is a new applet bug in some variant of some browser, so it pays to factor the browser out.
- An applet is a guest in a web page, but realistically, what does the web page wrapper actually contribute to the applet? Better to have the app. free floating on the desktop, at whatever position chosen by the user, and surviving the browser being closed.
- An applet in a web page is set to a specific size in the HTML, whereas a free floating frame can be whatever size it ideally needs to be. While the applet is only resizable via JS, a frame can be made resizable or not according to need.
- ...
Really this is a separate question you should ask. Then I'll move this answer to it.
这篇关于Java小程序隐藏状态栏的appletviewer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!