summaryrefslogtreecommitdiff
path: root/sources/simulator/VSSimulatorFrame.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/simulator/VSSimulatorFrame.java')
-rw-r--r--sources/simulator/VSSimulatorFrame.java12
1 files changed, 11 insertions, 1 deletions
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;