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 From web interface to Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "From web interface to Swing" Watch "From web interface to Swing" New topic
Author

From web interface to Swing

Angelino Dolce
Greenhorn

Joined: Jul 26, 2005
Posts: 24
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
Marshal

Joined: Mar 22, 2005
Posts: 42927
    
  68
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

Joined: Jul 26, 2005
Posts: 24
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

Joined: Mar 25, 2004
Posts: 109
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
Marshal

Joined: Mar 22, 2005
Posts: 42927
    
  68
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

Joined: Jul 26, 2005
Posts: 24
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

Joined: Jul 26, 2005
Posts: 24
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.
 
jQuery in Action, 2nd edition
 
subject: From web interface to Swing