mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 19:30:46 +00:00
throw interrupted exception when Thread.isInterrupted() => timed out threads will abort
This commit is contained in:
@@ -47,7 +47,7 @@ public class GraphFrame extends AppFrame {
|
||||
private int backLinksRight = 0;
|
||||
private GraphPart head;
|
||||
|
||||
public GraphPanel(Graph graph) {
|
||||
public GraphPanel(Graph graph) throws InterruptedException {
|
||||
graph.init(new ArrayList<>());
|
||||
size = getPartPositions(head = graph.heads.get(0), SPACE_VERTICAL + SPACE_VERTICAL + BLOCK_HEIGHT / 2, getPartWidth(graph.heads.get(0), new HashSet<GraphPart>()) * (BLOCK_WIDTH + SPACE_HORIZONTAL) / 2 - SPACE_HORIZONTAL, partPos, true);
|
||||
backLinksLeft = 1;
|
||||
@@ -240,7 +240,7 @@ public class GraphFrame extends AppFrame {
|
||||
int frameWidthDiff;
|
||||
int frameHeightDiff;
|
||||
|
||||
public GraphFrame(Graph graph, String name) {
|
||||
public GraphFrame(Graph graph, String name) throws InterruptedException {
|
||||
setSize(500, 500);
|
||||
Container cnt = getContentPane();
|
||||
cnt.setLayout(new BorderLayout());
|
||||
|
||||
Reference in New Issue
Block a user