Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add native file dialogs for mac OS #24

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

flavius-t
Copy link

@flavius-t flavius-t commented Oct 22, 2024

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

@alanchenup
Copy link

@steos very useful ,please add to master @flavius-t thx

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants