I do not know any API for this. The following code finds the table used by file selection, and then manually sorts it by date column:
JFrame frame = new JFrame(); JFileChooser fileChooser = new JFileChooser("."); Action details = fileChooser.getActionMap().get("viewTypeDetails"); details.actionPerformed(null);
You will also need the Darryl Swing Utils class.
source share