Client/Server GUI hanging up - Brocard's Problem - Running multiple client threads
posted 7 years ago
I've created a server and client class along with a GUI which tests out Brown numbers (solutions to Brocard's problem, n! + 1 = m^2). I am testing every value of n starting at 1 up to and beyond 10^9. I connect to the server but when I press the client thread 'Start Client" button the program begins the computations but the GUI hangs up and the button stays depressed. My goal is to have the output from the computations displayed in a TextField and also be able to start up more than 1 client thread and have each running it's own computations and displaying the results on separate windows. The code below does not include the code for the computations but just echos back "Welcome to Java based Server". But if I can get this to be displayed without the GUI hanging up that'd be great.