• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Program becomes unresponsive after using while loop

 
Frederick Pease
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what's making this happen, but something tells me it has to do with the loop. I hit the enter key which starts the program, then it doesn't stop when I press the button again.

 
Rob Spoor
Sheriff
Pie
Posts: 20665
65
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read Concurrency in Swing. In short, this loop takes over the Event Dispatcher Thread completely.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic