if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
oldDir = fileChooser.getCurrentDirectory().getAbsolutePath();
PatternParameter[] ppr = null;
SoundParameter[] spr = null;
FXParameter[] fpr = null;
ProgramParameter prgPar = null;
try {
File f = fileChooser.getSelectedFile();
XMLDecoder e = new XMLDecoder(new BufferedInputStream(
new FileInputStream(f)));
Object o = e.readObject();