aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Program becomes unresponsive after using while loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Program becomes unresponsive after using while loop" Watch "Program becomes unresponsive after using while loop" New topic
Author

Program becomes unresponsive after using while loop

Frederick Pease
Greenhorn

Joined: Aug 12, 2013
Posts: 3
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

Joined: Oct 27, 2005
Posts: 19556
    
  16

Please read Concurrency in Swing. In short, this loop takes over the Event Dispatcher Thread completely.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Program becomes unresponsive after using while loop
 
Similar Threads
Need to get data to appear in JTextField..
I Seriously Need Helps.. Ugently
Won't repaint!
Prevent Duplicate value from jlist to jlist by way of a jbutton
Problem displaying..