网站上的JFrame [英] JFrame on website

查看:61
本文介绍了网站上的JFrame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由许多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):

  1. 使用Java Web Start
  2. JFrame转换为JApplet
  3. 从头开始创建Java Web应用程序
  1. Use Java Web Start
  2. Convert JFrame to JApplet
  3. 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,良好/不良做法?

这篇关于网站上的JFrame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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