Solved

alternative to JFileChooser

Posted on 2010-11-28
10
869 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:hipal
  • 5
  • 4
10 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 333 total points
ID: 34225319
You could use a JEditorPane and make the file names html links (which would then be openable after writing a suitable link handler)
0
 

Author Comment

by:hipal
ID: 34226453
can you please elaborate a bit on that.

Thanks for reply.
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 333 total points
ID: 34226507
See http://www.exampledepot.com/egs/javax.swing.event/Hyperlink.html . You would set the text from adding file name strings
0
 

Author Comment

by:hipal
ID: 34226545
can't I have a thumbnail instead of displaying them as links .?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34226650
A thumbnail of what?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:hipal
ID: 34226681
files in the folder ..
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34226693
Most things are possible *theoretically* but doing that certainly wouldn't be easy
0
 

Author Comment

by:hipal
ID: 34226729
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
 
LVL 92

Assisted Solution

by:objects
objects earned 167 total points
ID: 34226836
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34229402
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB Script to add site to Java Exception List 4 47
eclipse shortcuts 9 45
Java SE 8u111  Lot of stuff broke 11 52
servlet example issue 6 27
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now