From e138680d7c3059ee4bbe93c7868508ccde7a63ff Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 09:37:54 -0600 Subject: [PATCH] Remove Unused DelayTabbedPaneThread --- .../gui/resourceviewer/TabbedPane.java | 2 - .../gui/util/DelayTabbedPaneThread.java | 37 ------------------- 2 files changed, 39 deletions(-) delete mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/gui/util/DelayTabbedPaneThread.java diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java index 73fff32e..7f216b4f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java @@ -3,7 +3,6 @@ package the.bytecode.club.bytecodeviewer.gui.resourceviewer; import the.bytecode.club.bytecodeviewer.gui.components.ButtonHoverAnimation; import the.bytecode.club.bytecodeviewer.gui.components.MaxWidthJLabel; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; -import the.bytecode.club.bytecodeviewer.gui.util.DelayTabbedPaneThread; import javax.swing.*; import java.awt.*; @@ -38,7 +37,6 @@ public class TabbedPane extends JPanel { public final JTabbedPane tabs; public final JLabel label; - private DelayTabbedPaneThread probablyABadIdea; private long startedDragging = 0; public final String tabName; public final String fileContainerName; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/DelayTabbedPaneThread.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/DelayTabbedPaneThread.java deleted file mode 100644 index a43fe76a..00000000 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/DelayTabbedPaneThread.java +++ /dev/null @@ -1,37 +0,0 @@ -package the.bytecode.club.bytecodeviewer.gui.util; - -import java.awt.Color; -import javax.swing.SwingUtilities; -import the.bytecode.club.bytecodeviewer.gui.resourceviewer.TabbedPane; - -/** - * @author Konloch - */ -public class DelayTabbedPaneThread extends Thread -{ - public boolean stopped = false; - private final TabbedPane pane; - - public DelayTabbedPaneThread(TabbedPane pane) { - this.pane = pane; - } - - @Override - public void run() { - try { - sleep(200); - } catch (InterruptedException e) { - e.printStackTrace(); - } - if (!stopped) { - SwingUtilities.invokeLater(() -> { - if (stopped) - return; - - pane.label.setOpaque(true); - pane.label.setBackground(Color.MAGENTA); - pane.label.updateUI(); - }); - } - } -}