jnafilechooser icon indicating copy to clipboard operation
jnafilechooser copied to clipboard

add native file dialogs for mac OS

Open flavius-t opened this issue 4 months ago • 0 comments

Supports #16

Hi, thanks for creating this project, I found it very helpful for use on Windows. I thought it would be a good idea to also extend the functionality to support native file and folder browsing dialogs for Mac OS. I added support for Mac via AWT's FileDialog class.

Changes

  • added showMacFileChooser and showMacFolderBrowser methods to JnaFileChooser, which are now called by showDialog if the platform is Mac.

Demo Images

I put together a demo app to showcase the functionality on Mac, here are some screenshots:

file selection, single select

jnafilechooser-mac-singlefile

file selection, multi select

jnafilechooser-mac-multifile

file save

jnafilechooser-mac-savefile

folder select

jnafilechooser-mac-folder

flavius-t avatar Oct 22 '24 18:10 flavius-t