Java - 类似控制台的网络小程序 [英] Java - Console-like web applet
问题描述
嘿,我一直在用 Java 在 windows 控制台中开发一个应用程序,并希望将它放在所有控制台图形荣耀中.
Hey, I've been developing an application in the windows console with Java, and want to put it online in all of its console-graphics-glory.
是否有一个简单的网络小程序 API 可以用来移植我的应用程序?
Is there a simple web applet API I can use to port my app over?
我只是使用基本的 System.out 和 System.in 功能,但我很高兴重建我的 I/O 包装器.
I'm just using basic System.out and System.in functionality, but I'm happy to rebuild my I/O wrappers.
我认为,对于任何想要将工作放到网上的初级 Java 开发人员来说,这些方面的东西都是一笔巨大的财富.
I think something along these lines would be a great asset to any beginning Java developers who want to put their work online.
推荐答案
当然,只是制作一个小程序,在上面放一个带有 JFrame 的小型摆动 UI,其中包含两个组件 - 一个用于写入输出,一个用于输入输入从.在页面中嵌入小程序.
Sure, just make into an applet, put a small swing UI on it with a JFrame with two components - one for writing output to, and one for entering inputs from. Embed the applet in the page.
这篇关于Java - 类似控制台的网络小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!