Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

alternative to JFileChooser

Posted on 2010-11-28
10
902 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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
 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
This is about my first experience with programming Arduino.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

791 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