Missing file chooser control

Phil Race philip.race at oracle.com
Wed Jan 16 09:36:30 PST 2013


And a good one is likely to be available in platform-specific variations
unless you really don't care and say so and can hold the line on that.

But you maybe should take a look at the JDK code and what Swing
had to do on Windows in terms of the file system etc.

There can be subtleties like really sucky performance if you get it wrong.
So a toy chooser might be easy. A full blown one very hard.

-phil.


On 1/16/2013 9:24 AM, Richard Bair wrote:
> I would have a class "CustomFileChooser" that extends Object and adds whatever API you want to support customized file choosers. Then in the show methods create and show a dialog with whatever UI you want and use the normal Java APIs to access the filesystem.
>
> Richard
>
> On Jan 16, 2013, at 8:05 AM, Pedro Duque Vieira <pedro.duquevieira at gmail.com> wrote:
>
>> Hi Richard,
>>
>> Can you give some pointers on how one could go about do it?
>>
>> Thanks, cheers,
>>
>> On Wed, Jan 16, 2013 at 3:35 PM, Richard Bair <richard.bair at oracle.com> wrote:
>> It is unlikely that we will build a customizable file chooser dialog in the core platform. Is it possible to create one in, for example, jfxtras? Our experience with the file chooser in Swing was that it was an incredible time sink and seemingly never pleased anybody. It was customized though and there is no doubt people want such a dialog. But I see it as a good 3rd party control opportunity (maybe several of them to please the varied use cases).
>>
>> Richard
>>
>> On Jan 16, 2013, at 6:24 AM, Pedro Duque Vieira <pedro.duquevieira at gmail.com> wrote:
>>
>>> I've you filled one? If so it would be better if I vote on your issue.
>>>
>>> Cheers,
>>>
>>> On Wed, Jan 16, 2013 at 12:40 PM, Randahl Fink Isaksen <randahl at rockit.dk>wrote:
>>>
>>>> You are not alone. I suggest you file a Jira feature request at
>>>> http://javafx-jira.kenai.com/browse/RT
>>>>
>>>> Randahl
>>>>
>>>>
>>>> On Jan 10, 2013, at 16:42 , Pedro Duque Vieira <
>>>> pedro.duquevieira at gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I miss a file chooser control like the one Swing had. In javafx it is
>>>>> integrated with a dialog so you can't customize what appears alongside.
>>>>> For instance, in swing it was possible to add an image next to the file
>>>>> chooser to show a preview of the file.
>>>>>
>>>>> Cheers,
>>>>>
>>>>>
>>>>> --
>>>>> Pedro Duque Vieira
>>>
>>> --
>>> Pedro Duque Vieira
>>
>>
>> -- 
>> Pedro Duque Vieira



More information about the openjfx-dev mailing list