Solved

alternative to JFileChooser

Posted on 2010-11-28
10
856 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

744 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

11 Experts available now in Live!

Get 1:1 Help Now