Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1842
| From | "Lew" <lew@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: JFileChooser features |
| Message-ID | <9tednX5adeUuWezbnZ2dnUVZ_riknZ2d@comcast.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1181847698.380829.112600@x35g2000prf.googlegroups.com> |
| Date | 2011-04-27 15:35 +0000 |
| Organization | TDS.net |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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