Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

 
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
 
Sheriff
Posts: 21421
94
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
Boost this thread!