From 937412a1cddd18d522c3e2880b3894bad22fcefd Mon Sep 17 00:00:00 2001 From: j-james Date: Fri, 25 Nov 2022 21:52:55 -0800 Subject: WHY is the autobot still on Java 8 (again) --- src/main/ui/BrowserBar.java | 3 --- src/main/ui/BrowserCanvas.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/main') 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 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); } -- cgit v1.2.3-70-g09d2