File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 19543
    
  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
Won't repaint!
Need to get data to appear in JTextField..
Problem displaying..
I Seriously Need Helps.. Ugently
Prevent Duplicate value from jlist to jlist by way of a jbutton