I'm kinda new in programming and I'm trying to learn everything by myself. Currently I'm working on a project to sort all my bills and other stuff. I managed it to updload the bills as PDF files onto a FTP Server. I'm displaying all outgoing money in a JTable and now I'd like to see a Thumbnail of the PDF in the right part of my swing GUI after i selected a table row.
Here is what I was thinking of:
- Get the selected row via a clickListener, read the bill number, which is the same number the file is called on the FTP (e.g. Number: "20130012" / File: "20130012.pdf"). Download the file from the FTP and save it somewhere temporary?!
- and now I need to display the pdf in my grid layout but how =) ? If it is a picture I could use the Image Icon right? But how do I get the effect with a pdf?
As soon as I click on the thumbnail, I'd like to open up a pdf reader to see the actual file.
Sorry if this is to less information... just let me know if you need further information. I'd really appreciate a few answers =)
Thanks