diff --git a/AlgebraicDataflowArchitectureModel/src/application/ApplicationWindow.java b/AlgebraicDataflowArchitectureModel/src/application/ApplicationWindow.java index aa1b7be..57fea37 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/ApplicationWindow.java +++ b/AlgebraicDataflowArchitectureModel/src/application/ApplicationWindow.java @@ -34,7 +34,6 @@ this.graph = new mxGraph() { public boolean isPort(Object cell) { mxGeometry geo = getCellGeometry(cell); - return (geo != null) ? geo.isRelative() : false; } @@ -74,6 +73,7 @@ menuBar = new ApplicationMenuBar(this); setJMenuBar(menuBar); setSize(870, 640); + setLocationRelativeTo(null); // Center on screen navigationWindow = new NavigationWindow(this, editor); navigationWindow.setVisible(true);