A FileChooser Component

Hello, what I am trying to do is having an area in a panel where the thumbnails of some files of a specific directory will appear and being able to do some "gui file manipulation" on them, like you can do with a JFileChooser, i mean like select a file, double click on a directory and show its contents, drag&drop etc. I think my main problem is I cannot figure out what kind of components the shown files have to be, actually the whole thing after some search seems rather difficult so if someone could point to some direction would be appreciated. What I want is a component like a JFileChooser but without the buttons, the path field, and not in a dialog but in my frame. So my first thought was to override JFileChooser but this class seems very tight to do such changes so I believe I have to make a new component, anyway I hope you understand what i am trying to say...

[886 byte] By [fraksiaa] at [2007-11-27 11:15:54]
# 1

So basically you want a JList displaying some files and when one of them is selected you want to display a thumbnail?

dwga at 2007-7-29 14:16:00 > top of Java-index,Desktop,Core GUI APIs...
# 2

No, not at all. What I want is a a representation of the files of a directory, like the windows explorer for example or nautilus file browser. As I said a JFileChooser without the buttons and not in a dialog. And I believe I have to create a new component for that, so I am asking for some directions. The thumbnail thing, forget it, I'll find a way to change the icons, the thing is I cannot figure out what kind of components to use as file icons.

fraksiaa at 2007-7-29 14:16:00 > top of Java-index,Desktop,Core GUI APIs...
# 3

> What I want is a a representation of the files of a directory, like the windows explorer for example

JTree?

camickra at 2007-7-29 14:16:00 > top of Java-index,Desktop,Core GUI APIs...
# 4

> the thing is I cannot figure out what kind

> of components to use as file icons.

JLabel?

dwga at 2007-7-29 14:16:00 > top of Java-index,Desktop,Core GUI APIs...
# 5

hey,

Think u do need a JTree right? I've made a class called DirTree that takes a string as a root path and populates itself with the directory structue.

The class is pretty big, but u can get the src from here: http://acquiesce.awardspace.co.uk/Projects/acqui.htm.

Still working on it a bit, but the DirTree works fine, tell me if that works, sorry for no docs tho.

Luke

dfgstga at 2007-7-29 14:16:00 > top of Java-index,Desktop,Core GUI APIs...