Java小程序隐藏状态栏的appletviewer [英] Java Applet Hide Status Bar Appletviewer

查看:304
本文介绍了Java小程序隐藏状态栏的appletviewer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Java小程序,这意味着在JDK的appletviewer要玩的游戏,我已经遇到的问题。在小应用程序底部的状态栏(棕一个写着小程序开始)很糟糕的游戏玩以上。在推荐的:
HTTP://www.$c$cranch.com/t / 256541 /小程序/ JAVA / JFrame的小程序
我添加了许可showWindowWithoutWarningBanner。然而,在此添加到我的安全策略:许可java.awt.AWTPermissionshowWindowWithoutWarningBanner;

于是我打开小程序,但状态栏仍然存在。我可以证实,正在使用的安全策略文件,因为我能够读取并使用相同的策略写入文件。

第二尝试,尝试设置状态使用 setStatus(空)为空; 来看看是否能够完成这项工作,但只去掉了小程序已启动的文字,棕状态栏仍然存在。如果我做错了任何想法,或者如果有任何接下来要采取的步骤?


解决方案

  

..对于Java小程序很多恨,任何特定的原因..?



  • 小程序更难以开发和部署应用程序相比。每隔一周有一些浏览器的一些变种一个新的小程序的错误,所以它支付出去因素浏览器。

  • applet是在网页中做客,但实际上,这是什么网页包装实际上有助于小程序?最好有应用。自由浮动的桌面上,在由用户选择的任何位置,并且存活的浏览器被关闭。

  • 在一个网页的applet设置为在HTML特定尺寸,而自由浮动框架可以是任何大小它理想地需要。而小程序只能通过JS可调整大小,帧可以做成根据需要可调整大小与否。

  • ...

这真的是一个单独的问题,你应该问。然后,我将这个答案移动到它。

I am working on a game using Java Applets, meant to be played in the JDK AppletViewer, and I have run into an issue. The status bar at the bottom of the applet (the brownish one that says "Applet Started") looks bad with the game playing above. On recommendation from: http://www.coderanch.com/t/256541/Applets/java/JFrame-applet I added the permission "showWindowWithoutWarningBanner". However, upon adding this to my security policy: permission java.awt.AWTPermission "showWindowWithoutWarningBanner";

So I open the applet, but the status bar is still there. I can confirm that the Security Policy file is being used, as I am able to read and write using the same Policy file.

2nd Attempt, tried setting the status to null using setStatus(null); to see if that would finish the job but that only removed the "Applet Started" text, the brownish status bar is still there. Any ideas if I am doing something wrong, or if there are any next steps to take?

解决方案

..a lot of hate for Java Applets, any particular reasons why..?

  • 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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