Remove Unused DelayTabbedPaneThread
This commit is contained in:
parent
c02116fb56
commit
e138680d7c
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user