Horatiu Jeflea
Horatiu Jeflea

Reputation: 7404

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 the html page ?

Thank you

Upvotes: 1

Views: 4025

Answers (4)

Todd Owen
Todd Owen

Reputation: 16188

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.

Upvotes: 2

Joey
Joey

Reputation: 354506

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.

Upvotes: 6

npinti
npinti

Reputation: 52185

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

Upvotes: 0

Koerr
Koerr

Reputation: 15723

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

can run jsp,html on http://localhost

Upvotes: 0

Related Questions