You can get the Action from the ActionMap:
JFrame frame = new JFrame();
JFileChooser fileChooser = new JFileChooser(".");
Action details = fileChooser.getActionMap().get("viewTypeDetails");
details.actionPerformed(null);
fileChooser.showOpenDialog(frame);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…