Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

From web interface to Swing

 
Angelino Dolce
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!
I've a J2EE app (Servlets, Ejb ecc) with a web interface. The client has requested a Swing as application interface. The problem is that this appl. uses hardly the creation,saving and visualizzation of pdf, word and excel documents. What is the best way to adopt from the Swing point of view?
Thanks a lot in advance!
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uses hardly

Does this mean it does very little or very much PDF/Word/Excel handling? But either way, I don't understand what the problem is. Handling files on Java is the same whether you do on the client or on the server (the way of storing them would be different, of course).

What is the rationale behind the move to Swing? If EJBs are involved, then it still would not be a standalone, but a networked application, correct?

You would also need to consider whether you'd still be using servlets, and have the the business logic run on the server, or if that should be part of the Swing client as well.
 
Angelino Dolce
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf!
1. The application does very much PDF/Word/Excel handling.

2. The problem is: to visualizze this types of files from the swing application (for example clicking a JButton), I need to call Microsoft Word or Microsoft Excel or Acrobat Reader ecc. How to do this?
Thanx again!
 
Ben Zung
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True. Why bother with swing if everything is working and in places?
but anyhow if you want to open any file from inside java using the default installed program according to their kinds(pdf, htm, txt etc), try this


Good luck.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question to several forums, like you have done here. It leads to duplicate efforts, and you're not actually widening your readership, since everyone here reads multiple forums.
 
Angelino Dolce
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excuse me Ulf, You are right.
This is the right plase for my argument, but before I wrongly have post to the other forum Thanks!
 
Angelino Dolce
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Ben!
I have proved Your solution and it work well, but I'm not sure it work well in every situation, for example in a Java WebStart context.
Thank You.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic