throw interrupted exception when Thread.isInterrupted() => timed out threads will abort

This commit is contained in:
Honfika
2013-11-05 23:29:26 +01:00
parent 91d7f2b919
commit 62e97826a9
25 changed files with 87 additions and 62 deletions
@@ -704,8 +704,12 @@ public class ActionPanel extends JPanel implements ActionListener {
}
if (e.getActionCommand().equals("GRAPH")) {
if (lastCode != null) {
GraphFrame gf = new GraphFrame(new ActionGraph(lastCode, new HashMap<Integer, String>(), new HashMap<String, GraphTargetItem>(), new HashMap<String, GraphTargetItem>(), SWF.DEFAULT_VERSION), "");
gf.setVisible(true);
try {
GraphFrame gf = new GraphFrame(new ActionGraph(lastCode, new HashMap<Integer, String>(), new HashMap<String, GraphTargetItem>(), new HashMap<String, GraphTargetItem>(), SWF.DEFAULT_VERSION), "");
gf.setVisible(true);
} catch (InterruptedException ex) {
Logger.getLogger(ActionPanel.class.getName()).log(Level.SEVERE, null, ex);
}
}
} else if (e.getActionCommand().equals("EDITACTION")) {
setEditMode(true);