This isn't the correct forum. And three posts in two minutes is too many. Moving to Java forum.
What is the error you are having? You mentioned you are new at this but you have a GUI and threading in this. Are you familiar with the basics of java?
header('HTTP/1.1 420 Enhance Your Calm');