wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes FileChooser question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "FileChooser question" Watch "FileChooser question" New topic
Author

FileChooser question

Agapios Hartzoulakis
Greenhorn

Joined: Oct 13, 2005
Posts: 17
Hi,
I'm a newbie in Java and I would like some help... I'm using a filechooser and I have two questions.
1) how can I make it show the details of the files by default (now I have to click on the apropriate icon)
2) I would like to be able to see (or at least to get them somehow) the creation date of a file. All i can see now is the last modified date.
Thanks in advance, Any help will be much appreciated.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

It looks like you can by


You can customize this file view by creating a custom subclass of FileView (in the API reference documentation) and using an instance of the class as an argument to setFileView.


So you subclass the FileView and implement the getName method. This takes a File object which you can use to get the information you want to show. But it looks like that can only get the last modified date and not the create date.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FileChooser question
 
Similar Threads
URLyBird requirements confusion
how do I get around "onLoad" in my app
Comparing 2 dates
problem with file chooser
default JFileChooser to details view Mode