commit | 747cfdb28bd9de44d4e0afe81237b90a10674308 | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Fri Feb 25 15:29:28 2011 +0100 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Fri Feb 25 15:29:28 2011 +0100 |
tree | a166d7f0ca11665ea96799f0e551a05e9e124499 | |
parent | 51101ae160c68450deadc0acd0e662649e775541 [diff] |
Open the application window in platform default location Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
diff --git a/org.eclipse.example.calc/src/org/eclipse/example/calc/internal/ui/Calculator.java b/org.eclipse.example.calc/src/org/eclipse/example/calc/internal/ui/Calculator.java index ff2c20f..0e2a35d 100644 --- a/org.eclipse.example.calc/src/org/eclipse/example/calc/internal/ui/Calculator.java +++ b/org.eclipse.example.calc/src/org/eclipse/example/calc/internal/ui/Calculator.java
@@ -74,6 +74,7 @@ setTitle("Simple Calculator"); Container c = getContentPane(); c.setLayout(new BorderLayout()); + setLocationByPlatform(true); setupDisplay(c); setupButtonsPanel(c);