private FilePlacement loadPlacement() { FilePlacement pl = null; // load saved transformation File propertiesFile = new File(fileName.getAbsoluteFile() + ".placement"); try { if (propertiesFile.exists()) { pl = new FilePlacement(); Properties p = new Properties(); p.load(new FileInputStream(propertiesFile)); pl.fromProperties(p); } } catch (Exception e) { pl = null; e.printStackTrace(); } return pl; }