From 986ba9e27e6a3f6bced32d675246c85448b83f4f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 21 May 2008 02:04:33 +0000 Subject: OOkk --- sources/simulator/VSSimulation.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sources/simulator/VSSimulation.java') diff --git a/sources/simulator/VSSimulation.java b/sources/simulator/VSSimulation.java index bd19ff0..0216550 100644 --- a/sources/simulator/VSSimulation.java +++ b/sources/simulator/VSSimulation.java @@ -335,17 +335,24 @@ public class VSSimulation extends JPanel { if (processNum != simulationCanvas.getNumProcesses()) { variablesPanel.removeAll(); VSProcess process = getSelectedProcess(); - //VSEditor editor = new VSProcessEditor(prefs, process, VSEditor.ALL_PREFERENCES); - //variablesPanel.add(editor); + VSProcessEditor editor = new VSProcessEditor(prefs, process); + variablesPanel.add(new JScrollPane(editor.getContentPane())); } } }); variablesPanel = new JPanel(); globalVariablesPanel = new JPanel(); + + variablesPanel.setLayout(new BoxLayout(variablesPanel, BoxLayout.Y_AXIS)); + globalVariablesPanel.setLayout(new BoxLayout(globalVariablesPanel, BoxLayout.Y_AXIS)); + tabbedPane.add(prefs.getString("lang.variables"), variablesPanel); tabbedPane.add(prefs.getString("lang.variables.global"), globalVariablesPanel); + VSSimulationEditor editor = new VSSimulationEditor(prefs, simulatorFrame); + globalVariablesPanel.add(new JScrollPane(editor.getContentPane())); + editPanel.add(processesComboBox); editPanel.add(tabbedPane); -- cgit v1.2.3