I'm trying to make a level editor, and I'm using lwjgl2 to render on a canvas. When I try to use JFileChooser, the window and filechooser freeze when I close the filechooser window. I tried putting the fileChooser.showOpenDialogue() in a new thread, but it didn't do anything to fix the problem. Is there a way to put them in separate threads so they don't conflict?