ricardojlrufino / JExplorerTree

Simple File Explorer Component in pure Java
MIT License
3 stars 1 forks source link
java swing

JExplorerTree Java CI with Maven

Component for file management, with basic operations and DnD support

Diagram

Features

It was designed to be used in the context of a specific project directory (Workspace). It is not designed to browse the file system entirely.

Methods to overwrite

Usage

JExplorerPanel fileExplorerPanel = new JExplorerPanel(new File(root));
jframe.add(fileExplorerPanel, BorderLayout.CENTER);

See: example

Customize menus (override initMenus):

  @Override
  protected void initMenus() {
    super.initMenus();
    popup.remove(0); // remove frist menu Add File
  }

TODO / Tests

Waiting for contributions to complement these features. ;)

Undo

The undo operation is limited to 5 actions, as it is difficult to maintain consistency .. needing further tests to fully validate.

Undo DELETE

Basically the delete operation creates a temporary folder, and moves the deleted files there.

PS: Lack of testing on MacOS and Windows 10

ls /tmp/jfileexpl*
/tmp/jfileexplorer15903530670858895378310641893057:
package.html*

Build

The project uses maven for its construction. To obtain the JAR, run:

mvn clean package

Download

https://github.com/ricardojlrufino/JExplorerTree/releases

You can use simple provided example: JExplorerTree/src/examples/FileExplorerPanelDemo.java
java -jar target/jexplorertree-0.0.1-SNAPSHOT.jar

Projects Using:

Add your project here !