Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1842

Re: JFileChooser features

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Lew" <lew@THRWHITE.remove-dii-this>
Subject Re: JFileChooser features
Message-ID <9tednX5adeUuWezbnZ2dnUVZ_riknZ2d@comcast.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <1181847698.380829.112600@x35g2000prf.googlegroups.com>
References <1181847698.380829.112600@x35g2000prf.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 34
Date Wed, 27 Apr 2011 15:35:40 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918540 96.60.20.240 (Wed, 27 Apr 2011 10:35:40 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:35:40 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1842

Show key headers only | View raw


  To: comp.lang.java.gui
anthony.a...@gmail.com wrote:
>> (JFileChooser)
>>> Does anyone know if there's a reliable alternate file browsing dialog, ...

"Andrew Thompson" wrote:
>> java.awt.FileDialog  (I have not used it much and
>> do not know if it meets your definition of 'reliable'.)

Aziz wrote:
> No, I'd have to say it doesn't. Although it *is* native, it does not
> support all the features of the file chooser (multiple selection is
> the one I want).

<http://java.sun.com/javase/6/docs/api/javax/swing/JFileChooser.html#setMultiSelectionEnabled(boolean)>

 From your first post it looks like you may have tried that.  Did you also use
<http://java.sun.com/javase/6/docs/api/javax/swing/JFileChooser.html#setDragEnabled(boolean)>
with it?

I haven't tried these myself; I'm just going by the Javadocs.  From your post
it sounds like this might apply:
> Some look and feels might not support automatic drag and drop; they will ignore this property. You can work around such look and feels by modifying the component to directly call the exportAsDrag method of a TransferHandler.

at least when you have multi-select enabled, or perhaps this:
> The transferHandler property needs to be set to a non-null value for the drag to do anything. 

-- 
Lew

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: JFileChooser features "Aziz" <aziz@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
  Re: JFileChooser features "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
    Re: JFileChooser features "Aziz" <aziz@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
      Re: JFileChooser features "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
        Re: JFileChooser features "Aziz" <aziz@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
          Re: JFileChooser features "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000

csiph-web