File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Open Swing Application in a browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Open Swing Application in a browser" Watch "Open Swing Application in a browser" New topic
Author

Open Swing Application in a browser

Jiss Elizabeth
Greenhorn

Joined: Jul 28, 2004
Posts: 19
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

Joined: Jan 10, 2002
Posts: 60780
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jiss Elizabeth
Greenhorn

Joined: Jul 28, 2004
Posts: 19
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

Joined: Jan 10, 2002
Posts: 60780
    
  65

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

Joined: Jul 28, 2004
Posts: 19

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

-- Jiss
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41101
    
  45
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).


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

I think at this point you need to read up a little on GWT.
Jiss Elizabeth
Greenhorn

Joined: Jul 28, 2004
Posts: 19
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

If you have Swing Desktop application, then the beast deal will be to make an Applet for it.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10169
    
    8

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Open Swing Application in a browser
 
Similar Threads
Best tool to test swing application.
Should I select Swing or SWT ?
Applet not loading due to IOException
open source Test automation tool for swing application
Open New Window