Remove Unused DelayTabbedPaneThread

This commit is contained in:
Konloch 2024-08-21 09:37:54 -06:00
parent c02116fb56
commit e138680d7c

AI 샘플 코드 생성 중입니다

Loading...
2 changed files with 0 additions and 39 deletions

View File

@ -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.ButtonHoverAnimation;
import the.bytecode.club.bytecodeviewer.gui.components.MaxWidthJLabel; import the.bytecode.club.bytecodeviewer.gui.components.MaxWidthJLabel;
import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer;
import the.bytecode.club.bytecodeviewer.gui.util.DelayTabbedPaneThread;
import javax.swing.*; import javax.swing.*;
import java.awt.*; import java.awt.*;
@ -38,7 +37,6 @@ public class TabbedPane extends JPanel {
public final JTabbedPane tabs; public final JTabbedPane tabs;
public final JLabel label; public final JLabel label;
private DelayTabbedPaneThread probablyABadIdea;
private long startedDragging = 0; private long startedDragging = 0;
public final String tabName; public final String tabName;
public final String fileContainerName; public final String fileContainerName;

View File

@ -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();
});
}
}
}