У меня есть метод, работающий на EDT, и в нем я хочу, чтобы он выполнял что-то в новом (не EDT) потоке. Мой текущий код выглядит следующим образом:
@Override
public void actionPerformed(ActionEvent arg0) {
//gathering parameters from GUI
//below code I want to run in new Thread and then kill this thread/(close the JFrame)
new GameInitializer(userName, player, Constants.BLIND_STRUCTURE_FILES.get(blindStructure), handState);
}