alternative to JFileChooser

Hi,

I am trying to do this.

Create a Window(some JComponent can be used.. not sure which one) and populate all the files (icons/thumbnails) in a folder in that window. Then I should be able to double click on any of those thumbnails to open the respective file.

It is a kind of simplified JFileChooser. I can use JFileChooser .. but I want to code this.

PLease suggest.
hipalAsked:
Who is Participating?
 
CEHJCommented:
You could use a JEditorPane and make the file names html links (which would then be openable after writing a suitable link handler)
0
 
hipalAuthor Commented:
can you please elaborate a bit on that.

Thanks for reply.
0
 
CEHJCommented:
See http://www.exampledepot.com/egs/javax.swing.event/Hyperlink.html . You would set the text from adding file name strings
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
hipalAuthor Commented:
can't I have a thumbnail instead of displaying them as links .?
0
 
CEHJCommented:
A thumbnail of what?
0
 
hipalAuthor Commented:
files in the folder ..
0
 
CEHJCommented:
Most things are possible *theoretically* but doing that certainly wouldn't be easy
0
 
hipalAuthor Commented:
By thumbnail .. I did not meant to say different thumbnails for each but just some some image (may be same for each file url) .. where user can click to open the file.
0
 
objectsCommented:
0
 
CEHJCommented:
:)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.