问题描述
我正在用 Java 小程序设计一个心理学实验.我必须让我的 java 小程序全屏显示.这样做的最佳方法是什么,我该怎么做.
I am designing a psychology experiment with java applets. I have to make my java applets full screen. What is the best way of doing this and how can I do this.
因为我已经 3 年没有使用 Java 小程序了(我最后一次使用它是为了课程作业:))我已经忘记了大部分概念.我用谷歌搜索并找到了该链接:Dani web
Since I haven't been using java applets for 3 years(The last time I've used it was for a course homework :) ) I have forgotten most of the concepts. I googled and found that link:Dani web
但是在上面链接中描述的方法中,您必须在小程序中放置一个 JFrame,我不知道该怎么做.
But in the method described in above link you have to put a JFrame inside the applet which I have no idea how to do it.
无论我需要一个快速而肮脏的方法,因为我没有太多时间,这就是我在这里问的原因.
Whatever I need a quick and dirty method b'cause I don't have much time and this is the reason why I asked it here.
提前谢谢
推荐答案
我认为您想使用 WebStart.您可以从浏览器进行部署,但它是一个完整的应用程序.有一些浏览器的安全限制,但是,由于您目前使用的是 Applet,我想我可以假设它们不是问题.
I think you want to use WebStart. You can deploy from a browser but it is otherwise a full blown application. There are a few browserish security restrictions, but, as you're using an Applet currently, I think I can assume they're not a problem.
这篇关于如何制作全屏java小程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!