• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

FileChooser question

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic