[Solved] Game never draws, multi-threading.

Hey all, when I load a level the display thread halts until loaded (using JOGL), so I figure I’ll just make a new window and throw it on top until the level is finished loading. This works fine in Eclipse, but after an export to runnable jar everything works up until clicking on the play button which calls the following method.


	private void loadLevel()
	{
		m_loader = new LoaderGraphic(m_window_width, m_window_height);
		Thread thread = new Thread(m_loader, "FFS02 - RendererLoader:" + m_level_name);
		thread.start();
		
		m_game_renderer = new GameRenderer();
		m_game_renderer.init(m_gl, m_window_width, m_window_height, m_level_name);//loads level in here
		m_loader.stop();//sets a boolean to false ending the main loop
		try{ thread.join(); } 
		catch (InterruptedException e){ e.printStackTrace(); }
		m_renderer = m_game_renderer;
		m_load_level = false;
	}

What is supposed to happen (and does in the IDE) is LoaderGraphic throws up a new window and renders a loading screen, once finished I stop the graphic and kill the thread. The main window shows again and the level is there.

When using a runnable jar I click the play button, the main thread freezes up and the level loads, no loading screen shows up. After the level loads the main window never draws again, but I hear sound and output to console says everything is fine…

Edit: removed the term lock as that’s not what I mean ( no .wait() calls)