Browser component for Java swing

Can anyone find a fully customizable (compatible with all standard LnF), fast browser component for Java Swing?

I have to place this component in the Netbeans UI palette and drag it to any JPanel when developing the user interface. It should also support a directory, a single file, multiple file selection, and file type filtering. There must be something because I saw this in applications like jEdit etc.

Note that I am not asking about a dialog box such as JFileChooser, and not about the browser / explorer / tree-view component.

+6
source share
2 answers

Here's a relatively simple file browser built in JPanel :

Here are some more complex file browser examples with icons, pop-up menus, and tooltips.
They are all built in JFrame :

These examples are probably not as customizable as you might wish, but they are pretty good starting points for adding new features.

For further reading, Swing, Second Edition (chapter 17) goes through the implementation of the JTree component to view your file system complete with lazy loading, custom renders, pop-up menus and tooltips.
If you want to see only the source, you can get here here .

There is also a FileBro that you can take a look at. Perhaps you can use it, or at least borrow implementation details.

+9
source

Source: https://habr.com/ru/post/895906/


All Articles