Use file dialogs rather than Swing file choosers.