How to preview any files inside a Java application ?

Posted by Studer on Stack Overflow See other posts from Stack Overflow or by Studer
Published on 2010-06-01T14:51:00Z Indexed on 2010/06/06 14:52 UTC
Read the original article Hit count: 250

Filed under:
|
|
|
|

I'm using a JTree to browse the content of a folder and I want that when a user click on a file, the software shows a preview of it (a screenshot of its first page).

The files are mostly Office documents and PDF.

I manage to do it for PDF file using a module downloaded from Sun, but I'd like to know if there is a way to do it using any software (JARs preferably) or even the built-in Windows API.

I was thinking of converting the file to PDF then do a preview of this PDF but this isn't optimal.

Any ideas ?

© Stack Overflow or respective owner

Related posts about java

Related posts about Windows