Java 应用程序与 Java applet
大家好,我用 Java 创建了这个 pacman 游戏。我想把它放在我的网站上,这样人们就可以在那里玩。不过我从来没有做过任何小程序,也不知道javascript。有没有办法自动将项目转成小程序?或者我必须从头开始编码?
Hey guys I created this pacman game in Java. I would like to put in on my website so people can play on there. However I have never done any applets, nor do I know javascript. Is there a way to automatically convert the project into an applet? Or do I have to code it from scratch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是用什么写的?如果它是在 AWT 或 Swing 中,那么将它放入 Applet 中只是一个打包问题 ( http://java .sun.com/applets/ )。
您还可以查看 http://java.sun.com/developer/technicalArticles/ programming/jnlp/ 允许您从网页运行 Java 应用程序
如果您擅长 Swing,您可能需要查看 GWT(Google Web Toolkit),它是一个与 Swing 非常相似的 API,可转换为 javascript 以在浏览器上本机运行。
What is it written in ? If it is in AWT or Swing then you putting it in an Applet is just a packaging issue ( http://java.sun.com/applets/ ).
You can also look at http://java.sun.com/developer/technicalArticles/Programming/jnlp/ which allows you to run a Java App from a web page
If you are good at Swing you might want to look at GWT (Google Web Toolkit) which is an API very similar to Swing that translates into javascript to run natively on a browser.