From f7b023c5cff7dae854a015889bd217f3b84f6e07 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 22 May 2008 15:14:34 +0000 Subject: Expert mode changable. --- sources/simulator/VSSimulatorFrame.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sources/simulator/VSSimulatorFrame.java') diff --git a/sources/simulator/VSSimulatorFrame.java b/sources/simulator/VSSimulatorFrame.java index f0a0fea..ee6f189 100644 --- a/sources/simulator/VSSimulatorFrame.java +++ b/sources/simulator/VSSimulatorFrame.java @@ -140,7 +140,7 @@ public class VSSimulatorFrame extends VSFrame implements ActionListener { private Container createContentPane() { Container pane = getContentPane(); - tabbedPane = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.SCROLL_TAB_LAYOUT); + tabbedPane = new JTabbedPane(JTabbedPane.BOTTOM, JTabbedPane.SCROLL_TAB_LAYOUT); tabbedPane.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent ce) { JTabbedPane pane = (JTabbedPane) ce.getSource(); @@ -158,6 +158,16 @@ public class VSSimulatorFrame extends VSFrame implements ActionListener { private void updateEditMenu() { menuEdit.removeAll(); + JMenuItem globalPrefsItem = new JMenuItem(prefs.getString("lang.prefs")); + globalPrefsItem.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent ae) { + new VSEditorFrame(prefs, VSSimulatorFrame.this, + new VSSimulationEditor(prefs, VSSimulatorFrame.this, + currentSimulation)); + } + }); + menuEdit.add(globalPrefsItem); + if (currentSimulation == null) return; -- cgit v1.2.3