• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JWS to add Swing to J2EE application?

 
Kristy Peterson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kristy Peterson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The other thread is here...
I have no idea which is the best forum for this thread! :roll:
Simon
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic