开发者

How can I use a browser as gui for java?

I want something similar with php/jsp in java, but not on the server side, but on the client side.

Maybe I can make a html file with i/o, or with some net.* classes. But what can I use for the button on 开发者_如何学Pythonthe html page ?

Thank you


It sounds like you want something like the Google Web Toolkit. You write your UI and logic in Java and it gets compiled into Javascript that then runs client-side in the browser.


Perhaps you mean you want to run an application on the local machine, but use an HTTP-based interface. In that case, you need the application to act as a web server on the local machine, then launch a web browser for "http://localhost:8080/" (or whatever port the application is listening on).

To implement this, you need an embedded web server such as Jetty.


install resin on your PC http://caucho.com/resin-4.0/admin/starting-resin.xtp (and JDK)

can run jsp,html on http://localhost


The question is a bit vague... maybe something like Rhino or MozSwing will help??

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜