简体   繁体   English

通过Web浏览器提供Java应用程序

[英]Making a Java Application available via a Web Browser

I am working on a Java program that has bunch of classes consisting of dialog boxes, JFrames, etc. 我正在开发一个Java程序,它包含一系列由对话框,JFrame等组成的类。

Can someone guide me where I can learn how to transform it to an 'applet' kind of. 有人可以指导我在哪里可以学习如何将其转换为“applet”类型。 ( I don't even know if applet is the right word) (我甚至不知道applet是否是正确的词)

Like for example, can it be accessible through the internet browser. 例如,可以通过互联网浏览器访问它。 If I somehow make a domain www.myjavaprogram2011.com it would be nice if it will take it straight to the java program I coded. 如果我以某种方式创建一个域名www.myjavaprogram2011.com,如果它能直接用于我编写的java程序,那就太好了。 I see this as anyone can come to this website and use that program. 我看到这一点,任何人都可以来到这个网站并使用该程序。

Thanks! 谢谢!

您可能希望查看Jars以进行分发,或者可能更适合Java Web Start,因为这样可以下载和运行客户端。

Java Applets isn't your best bet as there's lots of security permissions that you need to worry about as well as your jars needs to be signed (especially for client/server data access). Java Applets不是您最好的选择,因为您需要担心许多安全权限以及需要签名的jar(特别是对于客户端/服务器数据访问)。

Try using Java Web Start , it will allow you to launch fully-featured application from the Web Browser. 尝试使用Java Web Start ,它将允许您从Web浏览器启动功能齐全的应用程序。 Oracle has tutorials on deployment of JWS, etc. Oracle提供了有关部署JWS等的教程

Sounds you're looking for some kind of RIA technology. 听起来你在寻找某种RIA技术。 Have a look at JavaFX, though it's not mature yet IMHO. 看看JavaFX,虽然它还不成熟但恕我直言。

Ah, but then, if you already have a Swing application then this isn't an option probably. 啊,但是,如果你已经有一个Swing应用程序,那么这可能不是一个选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM