I need a nautilus-style file picker in java, where the files are shown “gallery-style” with a customisable thumbnail for each file. Is it possible to make the standard open file dialog do this? If not, does anyone know of an open-sourced widget that I can use?
I need a nautilus-style file picker in java, where the files are shown gallery-style
Share
I think @davetron5000 suggestion may still be useful: As shown in How to Use File Choosers, the FileChooserDemo2 example demonstrates an approach to constructing thumnails. It’s not exactly what you’re looking for, but it may be a good starting point. You’d update your preview pane in response to
DIRECTORY_CHANGED_PROPERTY, rather thanSELECTED_FILE_CHANGED_PROPERTY.Addendum:
org.netbeans.swing.outline.Outlinewith a customTableCellRenderermight be an interesting alternative.