Java multithreading GUI.