Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make JavaFX FileChooser and DirectoryChooser acessible from Swing #26

Closed
Oliver-Loeffler opened this issue Jul 6, 2019 · 1 comment
Closed
Milestone

Comments

@Oliver-Loeffler
Copy link
Owner

Create adapters so that JavaFX DirectoryChooser and FileChooser classes can be used instead of JFileChooser. Ideally the appearing dialogs shall be modal. If modality cannot be achieved, at least there should be a mechanism which prevents multiple dialogs to be started concurrently.

Also it would be nice if instance would remain configurable through JavaFX API and if there would be a central factory to create the now various instances of file choosers.

@Oliver-Loeffler Oliver-Loeffler added this to the 0.4.0 milestone Jul 6, 2019
Oliver-Loeffler added a commit that referenced this issue Jul 6, 2019
Sorting by lastModified date works fine now. See #28
UpdateService and FindFilesTask are now shutdown properly. See #27
JavaFX FileChooser and DirectoryChooser now work in an acceptable way on Windows #26
@Oliver-Loeffler
Copy link
Owner Author

New type StandardDirectoryChooser and StandardFileChooser can now be used from Swing user interfaces. On Windows modality works (parent has no focus, cannot be focused and is disabled).

On OSX however, parent is only disabled but stilll focusable. Linux not yet tested.

Both types offer a getDialog method which exposes the actual dialog so that a customization can be done. The API finally is mostly identical with JFileChooser so that both types can be used as a drop in replacement. Supported methods are JFileChooser.showOpenDialog and JFileChooser.showSaveDialog as well as JFileChooser.showDialog.

Works since c8d451b.

@Oliver-Loeffler Oliver-Loeffler modified the milestones: 0.5.0, 0.4.0 Jul 7, 2019
Oliver-Loeffler pushed a commit that referenced this issue Nov 4, 2020
Sorting by lastModified date works fine now. See #28
UpdateService and FindFilesTask are now shutdown properly. See #27
JavaFX FileChooser and DirectoryChooser now work in an acceptable way on Windows #26
Oliver-Loeffler pushed a commit that referenced this issue Nov 4, 2020
Sorting by lastModified date works fine now. See #28
UpdateService and FindFilesTask are now shutdown properly. See #27
JavaFX FileChooser and DirectoryChooser now work in an acceptable way on Windows #26
Oliver-Loeffler added a commit that referenced this issue Nov 4, 2020
Sorting by lastModified date works fine now. See #28
UpdateService and FindFilesTask are now shutdown properly. See #27
JavaFX FileChooser and DirectoryChooser now work in an acceptable way on Windows #26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant