• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Open Swing Application in a browser

 
Greenhorn
Posts: 19
  • 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
 
Marshal
Posts: 67478
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
  • 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
Marshal
Posts: 67478
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
  • 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
 
Rancher
Posts: 43016
76
  • 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
Marshal
Posts: 67478
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
  • 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



 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • 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.
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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.
 
Whip out those weird instruments of science and probe away! I think it's a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic