🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11416

Re: If JFileChooser may show icons for files, as they appear in Windows explorer

#11416
From: Luke Dickman
Date: Thu, 27 May 1999 00:00
24 lines
1265 bytes
If you want to specify your own viewer UI, you can use the following:

JFileChooser.setFileView(javax.swing.filechooser.FileView)

JFileChooser looks to see if there is a FileView defined by a user.  I so, it
will get the file type information from there.

There's a nice example of this provided with JDK1.2 in the following path:


<installed JDK root>/demo/jfc/FileChooserDemo/ExampleFileView.java

I hope that this helps.

Luke
-----


Tzvetan Petrov wrote:

> Hi, everyone
>
> Is there a way JFileChooser to show file icons as they appear in Windows
> explorer. I would like to have filesizes and date/time displayed as well.
Technical Details
Message-ID: <374DC6E0.FB157629@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7iip1e$3kd12@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d9f386d33adc5e72
X-Google-Attributes: gid111d45,public
From: Luke Dickman <ldickman@borland.com>
Subject: Re: If JFileChooser may show icons for files, as they appear in Windows  explorer
Date: 1999/05/27
Message-ID: <374DC6E0.FB157629@borland.com>
X-Deja-AN: 482884255
Content-Transfer-Encoding: 7bit
References: <7iip1e$3kd12@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing