Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)