diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-22 23:48:31 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-22 23:48:31 +0000 |
| commit | 7c3ba76ae38e5e20bb5eeb360d24e202d4d027d5 (patch) | |
| tree | ad5699eefb8d978bffc0b295c2b37a3108f326ec /sources/simulator/VSSimulation.java | |
| parent | 3c7a6abb7aa82f3b7c1d44db9520763469af415f (diff) | |
Dont reset the divider locations if prefs have been changed.
Diffstat (limited to 'sources/simulator/VSSimulation.java')
| -rw-r--r-- | sources/simulator/VSSimulation.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sources/simulator/VSSimulation.java b/sources/simulator/VSSimulation.java index 799acd6..31a8d61 100644 --- a/sources/simulator/VSSimulation.java +++ b/sources/simulator/VSSimulation.java @@ -112,6 +112,15 @@ public class VSSimulation extends JPanel { logging.logg(prefs.getString("lang.simulation.new")); fillContentPane(); updateFromPrefs(); + splitPaneH.setDividerLocation( + prefs.getInteger("div.window.splitsize")); + + splitPaneV.setDividerLocation( + prefs.getInteger("div.window.ysize") + - prefs.getInteger("div.window.loggsize")); + + splitPane1.setDividerLocation((int) (getPaintSize()/2) - 20); + int numProcesses = simulationCanvas.getNumProcesses(); @@ -877,15 +886,6 @@ public class VSSimulation extends JPanel { } public void updateFromPrefs() { - splitPaneH.setDividerLocation( - prefs.getInteger("div.window.splitsize")); - - splitPaneV.setDividerLocation( - prefs.getInteger("div.window.ysize") - - prefs.getInteger("div.window.loggsize")); - - splitPane1.setDividerLocation((int) (getPaintSize()/2) - 20); - simulationCanvas.setBackground(prefs.getColor("col.background")); simulationCanvas.updateFromPrefs(); } |
