Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client/Server GUI hanging up - Brocard's Problem - Running multiple client threads

 
Rick Wallace
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Any suggestions?



Thank you
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this page.
 
Rick Wallace
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perfect. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic