File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "FileChooser question" Watch "FileChooser question" New topic

FileChooser question

Agapios Hartzoulakis

Joined: Oct 13, 2005
Posts: 17
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

Joined: Feb 05, 2001
Posts: 17276

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.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: FileChooser question
It's not a secret anymore!