• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open Swing Application in a browser

 
Jiss Elizabeth
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a Swing application which i wish to open and run through a browser. I found a tool called AjaxSwing but this is not Open Source. Does anyone know an Open Source tool or a way to run Swing application on a browser.

Thanks in Advance!

-- Jiss
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AjaxSwing does not let you run Swing applications in the browser. It converts the app into HTML and JavaScript that runs in the browser. Not the same thing at all.

If that's what you want, that's what GWT does as well, but for free.

If you want to run Java in the browser, that's what Applets are for.

If you want pull Swing apps to client machines for execution, that's what Java Web Start is all about.
 
Jiss Elizabeth
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

... thank you for your reply.

Since i already have a complete Swing application am looking for an easy way of bring it on to web so that anyone can open and run the application through a browser.

I read that AjaxSwing converts the app into HTML/JavaScript. But unfortunately as said this is not free.

Does GWT has the functionality to convert the existing Swing app to web app or do i have to start from scratch?

- Jiss
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to use the GWT API.

If you want people to be able to start the existing app from a browser (but not run inside the browser), then Java Web Start may be the choice for you.
 
Jiss Elizabeth
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Do you mean that GWT has an API for this migration of Swing app to web through a browser?

-- Jiss
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. GWT lets you create HTML/JavaScript web GUIs in a Swing-like manner - by writing Java code (instead of HTML/JavaScript, which GWT creates for you).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think at this point you need to read up a little on GWT.
 
Jiss Elizabeth
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

...thank you!

I think AjaxSwing ll be a better option in my case as i already have a Swing app. Incase of GWT i need to start from scratch is what i understood.
Incase of Java Web Start there is this overhead of installing it on every machine where i wish to run my app.

-- Jiss



 
Sagar Rohankar
Ranch Hand
Posts: 2904
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have Swing Desktop application, then the beast deal will be to make an Applet for it.
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are planning the applet approach, depending on what your application does, you will need to take care of the security issues. This link might help you get started on that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic