Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waikato-datamining/simple-directory-chooser
Simple Java swing widgets for selecting directories, more intuitive than using the JFileChooser dialog.
https://github.com/waikato-datamining/simple-directory-chooser
directory-chooser-widget java swing
Last synced: about 2 months ago
JSON representation
Simple Java swing widgets for selecting directories, more intuitive than using the JFileChooser dialog.
- Host: GitHub
- URL: https://github.com/waikato-datamining/simple-directory-chooser
- Owner: waikato-datamining
- License: apache-2.0
- Created: 2022-10-15T20:58:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T00:02:38.000Z (about 2 years ago)
- Last Synced: 2023-05-25T22:56:18.765Z (over 1 year ago)
- Topics: directory-chooser-widget, java, swing
- Language: Java
- Homepage:
- Size: 254 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-directory-chooser
Simple Java swing widgets for selecting directories, more intuitive than using the JFileChooser dialog.By default, only a single directory can be selected, but this can be changed by calling the
`setMultiSelectionEnabled(boolean)` method. Whether the returned directories are in order of
selection or alphabetically ordered can be influenced with `setSortSelectedDirectories(boolean)`.## Widgets
* `nz.ac.waikato.cms.adams.simpledirectorychooser.SimpleDirectoryChooserPanel` - panel that displays the
directory structure.
* `nz.ac.waikato.cms.adams.simpledirectorychooser.SimpleDirectoryChooser` - `javax.swing.JFileChooser`-like
dialog with very similar interface to make it easier to replace## Maven
Use the following dependency in your `pom.xml`:
```xml
nz.ac.waikato.cms.adams
simple-directory-chooser
0.0.3
```## Examples
The following classes demonstrate the use of the widgets:
* [PanelExample.java](src/main/java/nz/ac/waikato/cms/adams/simpledirectorychooser/examples/PanelExample.java)
* [SimpleDirectoryChooserExample.java](src/main/java/nz/ac/waikato/cms/adams/simpledirectorychooser/examples/SimpleDirectoryChooserExample.java)
* [SimpleDirectoryChooserMultiSelectionExample.java](src/main/java/nz/ac/waikato/cms/adams/simpledirectorychooser/examples/SimpleDirectoryChooserMultiSelectionExample.java)## Screenshots
### Linux
* Panel
![Panel under Linux (default icons)](src/site/resources/panel-default-linux.png)
* Dialog
![Dialog under Linux (default icons)](src/site/resources/dialog-default-linux.png)
### Windows
* Panel
![Panel under Windows (default icons)](src/site/resources/panel-default-windows.png)
* Dialog
![Dialog under Windows (default icons)](src/site/resources/dialog-default-windows.png)