Re: How to display the "favorites bar" for a file chooser in a platform application?

[email protected]
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <[email protected]>
No change for me. I guess I somehow need to define the NetBeans favorites to make that panel appear.

But my application has not UI for setting favorites, and I hoped that it would be possible to manage
them through the panel in the file chooser.


Am 01.03.25 um 19:12 schrieb Michael Bien:
> Hi,
> 
> nice to hear that someone is using the favorites list integration :)
> 
> seems to work for me, tested it with:
> 
>          JFileChooser fs = new FileChooserBuilder("/tmp").createFileChooser();
>          fs.showOpenDialog(null);
> 
> in a NetBeans application and it had the shortcuts panel with the favorites list.
> 
> 
> Could be potentially DirectoryChooserUI disabling the panel for some reason:
> https://github.com/apache/netbeans/blob/f1988057a37239337579a165bc27337c870a6dd9/ide/o.n.swing.dirchooser/src/org/netbeans/swing/dirchooser/DirectoryChooserUI.java#L257-L261
> 
> you could try to start with -Dstandard-file-chooser=true, this should use the JDK file chooser everywhere.
> 
> -mbien
> 
> On 01.03.25 16:46, [email protected] wrote:
>> I would like to include the "favorites bar" in a file chooser from within my NetBeans platform application (the same way the NetBeans IDE does it, when I enable "show favorites in the file chooser" in the FlatLaf configuration.
>>
>> But when I use FileChooserBuilder it displays the standard Swing JFileChooser without a favorites panel.
>>
>> I explicitly set FileChooser.noPlacesBar to FALSE during startup of my application, but that doesn't seem to change anything.
>>
>> When I use "File -> Open" inside the NetBeans IDE it does show the favorites I registered inside the NetBeans IDE, not those from the operating system.
>> So it seems I must register them manually somehow, but I can't find an API for that.
>>
>> This needs to work on  Linux in case that matters.
>>
>> Any ideas or pointers?
>>
>>
>>
>>
>>   
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.