Cuadro de diálogo para abrir/salvar ficheros

Abrir un ficheroJFileChooser c = new JFileChooser();				
int rVal = c.showOpenDialog(Ventana.this);
if (rVal == JFileChooser.APPROVE_OPTION) {
	System.out.println(c.getSelectedFile().getName());
	System.out.println(c.getCurrentDirectory().toString());
}
if (rVal == JFileChooser.CANCEL_OPTION) {
	System.out.println("Pulsaste cancelar");
}