aboutsummaryrefslogtreecommitdiff
path: root/src/main/ui/BrowserBar.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/ui/BrowserBar.java')
-rw-r--r--src/main/ui/BrowserBar.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main/ui/BrowserBar.java b/src/main/ui/BrowserBar.java
index 507c33f..ed9e314 100644
--- a/src/main/ui/BrowserBar.java
+++ b/src/main/ui/BrowserBar.java
@@ -19,9 +19,6 @@ public class BrowserBar extends JToolBar {
this.parent = parent;
tabMenu = new JPopupMenu("Tabs");
- tabMenu.add(new JMenuItem("Hello"));
- tabMenu.add(new JMenuItem("World"));
- tabMenu.add(new JMenuItem("Lorem"));
tabButton = new JToggleButton("Tabs");
tabButton.addActionListener(toggleTabMenu());
@@ -44,8 +41,6 @@ public class BrowserBar extends JToolBar {
String uri = uriInput.getText();
parent.render(uri);
addTab(uri);
- System.out.println(uri);
- System.out.println("should run");
}
};
}
@@ -66,13 +61,13 @@ public class BrowserBar extends JToolBar {
} else {
tabMenu.remove(tabButton);
tabMenu.setVisible(false);
- parent.removeTab(tab);
+ parent.getBrowserState().removeTab(tab);
}
}
});
this.tabMenu.add(tabButton);
- parent.addTab(tab);
+ parent.getBrowserState().addTab(tab);
}
// MODIFIES: this