网站上的JFrame [英] JFrame on website
问题描述
我有一个由许多JFrame
对象组成的应用程序(使用Java和Netbeans). 主"框架有4个按钮,每个按钮可打开另一个框架.现在我的问题是我希望整个应用程序都可以作为网站在Web上运行.
I have an application which is composed of many JFrame
objects (using Java and Netbeans). The 'main' frame has 4 buttons and each button opens another frame. Now my problem is that I want the whole application to be run on the web as a website.
我正在考虑3种可能的情况(根据我的研究):
I was considering 3 possible scenarios (from my research):
- 使用Java Web Start
- 将
JFrame
转换为JApplet
- 从头开始创建Java Web应用程序
- Use Java Web Start
- Convert
JFrame
toJApplet
- Create from scratch a Java web application
我希望也许有人能给我一些帮助,以及我应该选择哪种选择的指南.
I was hoping that maybe someone can give me some help, and guidelines of which option I should opt for.
推荐答案
对于部署Java桌面应用程序,最好的选择通常是安装该应用程序.使用 Java Web Start . JWS可在Windows,OS X和更高版本上使用. Unix/Linux.
For deploying Java desktop apps., the best option is usually to install the app. using Java Web Start. JWS works on Windows, OS X & Unix/Linux.
Applet的部署一直很困难,因为特定JRE的特定版本与特定的浏览器一起出现怪异的错误.我的收藏夹"错误发生在Firefox版本中,该版本在用户在网页中滚动上时触发了小程序的重新加载.
Applet deployment has always been difficult, with weird bugs in particular versions of specific JREs in conjunction with particular browsers. My 'favorite' bug happened in a version of Firefox that triggered an applet to reload when the user scrolled up in the web page.
这篇关于网站上的JFrame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!