• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Open Swing Application in a browser

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic