diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/ui/BrowserBar.java | 3 | ||||
-rw-r--r-- | src/main/ui/BrowserCanvas.java | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/main/ui/BrowserBar.java b/src/main/ui/BrowserBar.java index 09c78a5..507c33f 100644 --- a/src/main/ui/BrowserBar.java +++ b/src/main/ui/BrowserBar.java @@ -18,13 +18,10 @@ public class BrowserBar extends JToolBar { public BrowserBar(BrowserWindow parent) { this.parent = parent; - var test = new JMenuItem("Ipsum"); tabMenu = new JPopupMenu("Tabs"); tabMenu.add(new JMenuItem("Hello")); tabMenu.add(new JMenuItem("World")); tabMenu.add(new JMenuItem("Lorem")); - tabMenu.add(test); - tabMenu.remove(test); tabButton = new JToggleButton("Tabs"); tabButton.addActionListener(toggleTabMenu()); diff --git a/src/main/ui/BrowserCanvas.java b/src/main/ui/BrowserCanvas.java index 2a77442..86ccd58 100644 --- a/src/main/ui/BrowserCanvas.java +++ b/src/main/ui/BrowserCanvas.java @@ -29,7 +29,7 @@ public class BrowserCanvas extends JPanel { private void renderHtml(ArrayList<Node> html, Graphics g, Point location) { for (Node node : html) { if (node instanceof TextNode) { - if (!node.getData().isBlank()) { + if (node.getData().length() > 5) { g.drawString(node.getData(), location.x, location.y); location.translate(0, 20); } |