PerspectiveManager.setRestoreFloatingOnLoad(true);
PerspectiveManager mgr = PerspectiveManager.getInstance();
//mgr.setCurrentPerspective(P1, true);
// load any previously persisted layouts
PersistenceHandler persister = new FilePersistenceHandler(new File(FilePersistenceHandler.DEFAULT_PERSPECTIVE_DIR, PERSPECTIVE_FILE), XMLPersister.newDefaultInstance());
PerspectiveManager.setPersistenceHandler(persister);
try {
DockingManager.loadLayoutModel();
} catch(IOException ex) {
ex.printStackTrace();