File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes JWS to add Swing to J2EE application? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "JWS to add Swing to J2EE application?" Watch "JWS to add Swing to J2EE application?" New topic
Author

JWS to add Swing to J2EE application?

Kristy Peterson
Greenhorn

Joined: Feb 10, 2003
Posts: 10
I have a J2EE application that I want to add Swing too. The reason for this is I want to add a drag and drop JTree to my GUI and I cannot find any javascript to do this. If I add this, I don't want to put it in an Applet so I was thinking of using Java Web Start on the client. Does anyone know if this is feasible to run the Swing as well as my JSP pages for the GUI?
Thanks,
Kristy
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

I have a feeling that you are going to run into problems communicating between the JSP page and the Swing GUI.
If you could, would you tell us a little more about your application? Maybe we could shoot some suggestions at you after knowing more about what you are doing.


My Blog | DZone Articles
Kristy Peterson
Greenhorn

Joined: Feb 10, 2003
Posts: 10
Thanks for the reply.
I have an application that is basically an admin tool that connects to a local SQL database and updates Catalog data (items, attributes, etc). One of the windows displays multiple Catalogs along with their items, etc, in a tree-like fashion. We want the user to be able to drag and drop items from one Catalog to the other and/or attributes from one item to another. This is going to have to be displayed from database data as well as update the database for each move.
Thanks, Kristy
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

If you are going to want D&D you are going to have to get out of the browser.
Web Start is better than applets in my opinion but you still fall into the Security Sandbox. So you will have to sign your jar files.
What you will probably want to do is use SWING and JWS for the client and communicate using Servlets. That is what I would do anyway. That keeps the client from directly connecting with the datebase, so it is more secure that way.
You may want to post a question in the HTML/Javascript Forum OR the JSP forum inquiring about D&D but I am pretty sure neither support it.
I hope that helps a little.
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1860
The other thread is here...
I have no idea which is the best forum for this thread! :roll:
Simon
 
 
subject: JWS to add Swing to J2EE application?
 
Threads others viewed
how to create a Calendar
How to extend a swing application
How to open an PDF file from Java Application
Drag and drop tree - JSP or Swing?
Change Java GUI Interface
MyEclipse, The Clear Choice