import javax.swing.JFileChooser;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.plaf.metal.MetalLookAndFeel;

public class FileChooserDetailsViewTest {
    public static void main(String[] args) {
        if (!(UIManager.getLookAndFeel() instanceof MetalLookAndFeel)) {
            try {
                UIManager.setLookAndFeel(new MetalLookAndFeel());
            } catch (UnsupportedLookAndFeelException ulafe) {
                throw new RuntimeException(ulafe);
            }
        }

        JFileChooser fChooser = new JFileChooser();
        fChooser.setDialogTitle("FileChooserDetailsViewTest");
        fChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
        fChooser.showOpenDialog(null);
    }
}
