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 When initial thread will complete Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "When initial thread will complete" Watch "When initial thread will complete" New topic
Author

When initial thread will complete

Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 103

Hi,

Say I have a piece of code as following



Now after going through serveral links like Threads and Swing I came to know that Initial thread will start the main and when components will be drawn Event dispatch thread will start.So as per my example when I am calling f.setVisible at that point Event Dispatch thread should start right ? And after that will initial thread return from main ?

Regards,
Arka
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632

http://bitguru.wordpress.com/2007/03/21/will-the-real-swing-single-threading-rule-please-stand-up/
 
 
subject: When initial thread will complete