diff options
author | j-james | 2022-11-26 05:52:55 +0000 |
---|---|---|
committer | j-james | 2022-11-26 05:52:55 +0000 |
commit | 937412a1cddd18d522c3e2880b3894bad22fcefd (patch) | |
tree | af9ec336a518d25d5f709b23bdf2d8aaf0db9a09 /src/main/ui | |
parent | 39ff1356f08ee8068852b9b58362c06a9ef77e1e (diff) |
WHY is the autobot still on Java 8 (again)
Diffstat (limited to 'src/main/ui')
-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); } |