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


Groups > comp.lang.java.gui > #1839 > unrolled thread

Re: JFileChooser features

Started by"Aziz" <aziz@THRWHITE.remove-dii-this>
First post2011-04-27 15:35 +0000
Last post2011-04-27 15:36 +0000
Articles 6 — 3 participants

Back to article view | Back to comp.lang.java.gui

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#1839 — Re: JFileChooser features

From"Aziz" <aziz@THRWHITE.remove-dii-this>
Date2011-04-27 15:35 +0000
SubjectRe: JFileChooser features
Message-ID<1181847698.380829.112600@x35g2000prf.googlegroups.com>
  To: comp.lang.java.gui
On Jun 7, 9:55 pm, "Andrew Thompson" <u32984@uwe> wrote:
> anthony.a...@gmail.com wrote:
>
> (JFileChooser)
>
> >Does anyone know if there's a reliable alternate file browsing dialog, ...
>
> java.awt.FileDialog  (I have not used it much and
> do not know if it meets your definition of 'reliable'.)
>
> --
> Andrew Thompsonhttp://www.athompson.info/andrew/
>
> Message posted viahttp://www.javakb.com

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).

---
 * 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

[toc] | [next] | [standalone]


#1842

From"Lew" <lew@THRWHITE.remove-dii-this>
Date2011-04-27 15:35 +0000
Message-ID<9tednX5adeUuWezbnZ2dnUVZ_riknZ2d@comcast.com>
In reply to#1839
  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

[toc] | [prev] | [next] | [standalone]


#1886

From"Aziz" <aziz@THRWHITE.remove-dii-this>
Date2011-04-27 15:35 +0000
Message-ID<1182655773.048045.17110@g4g2000hsf.googlegroups.com>
In reply to#1842
  To: comp.lang.java.gui
On Jun 14, 6:44 pm, Lew <l...@lewscanon.nospam> wrote:
> 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#s...)>
>
>  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#s...)>
> 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

Thank you, I had seen this put dismissed it as a DND implementation
thing ("...which must be true to enable automatic drag handling (the
first part of drag and drop) on this component..."). I still dislike
the lack of features it has, such as the different views, and the fact
that the right-click pop-up menu has only three options. The SystemUI
in Windows is lacking, especially.

---
 * 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

[toc] | [prev] | [next] | [standalone]


#1910

From"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Date2011-04-27 15:36 +0000
Message-ID<isj8831gvjsl4h0nktpttdjkot3qv6vbeu@4ax.com>
In reply to#1886
  To: comp.lang.java.gui
On Sun, 24 Jun 2007 03:29:33 -0000, Aziz <anthony.aziz@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>Thank you, I had seen this put dismissed it as a DND implementation
>thing ("...which must be true to enable automatic drag handling (the
>first part of drag and drop) on this component..."). I still dislike
>the lack of features it has, such as the different views, and the fact
>that the right-click pop-up menu has only three options. The SystemUI
>in Windows is lacking, especially.

another possibility is to figure out how to spawn some C code that
does the Windows file chooser, and link to it with JNI.  I have never
written code in JNI that popped up a native dialog box.  I don't know
how easy it is.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

---
 * 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

[toc] | [prev] | [next] | [standalone]


#1991

From"Aziz" <aziz@THRWHITE.remove-dii-this>
Date2011-04-27 15:36 +0000
Message-ID<1183993550.462584.180700@22g2000hsm.googlegroups.com>
In reply to#1910
  To: comp.lang.java.gui
On Jun 28, 8:19 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> On Sun, 24 Jun 2007 03:29:33 -0000,Aziz<anthony.a...@gmail.com>
> wrote, quoted or indirectly quoted someone who said :
>
> >Thank you, I had seen this put dismissed it as a DND implementation
> >thing ("...which must be true to enable automatic drag handling (the
> >first part of drag and drop) on this component..."). I still dislike
> >the lack of features it has, such as the different views, and the fact
> >that the right-click pop-up menu has only three options. The SystemUI
> >in Windows is lacking, especially.
>
> another possibility is to figure out how to spawn some C code that
> does the Windows file chooser, and link to it with JNI.  I have never
> written code in JNI that popped up a native dialog box.  I don't know
> how easy it is.
> --
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com


Would I experience any trouble with the mix of light-weight and heavy-
weight/native components? I may look into this, as I've been reading a
bit on C/C++ as well. I was also looking to keep it cross
platform . . .

---
 * 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

[toc] | [prev] | [next] | [standalone]


#2041

From"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Date2011-04-27 15:36 +0000
Message-ID<66nf9355h5s4boo8lt0v425qr1ns03qfjp@4ax.com>
In reply to#1991
  To: comp.lang.java.gui
On Mon, 09 Jul 2007 15:05:50 -0000, Aziz <anthony.aziz@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>Would I experience any trouble with the mix of light-weight and heavy-
>weight/native components? I may look into this, as I've been reading a
>bit on C/C++ as well. I was also looking to keep it cross
>platform . . .

The components are not going to mix in the same window.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

---
 * 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web