aspose 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
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 102

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/
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: When initial thread will complete
 
Similar Threads
JMenuBar on the move
understanding simple gui code
Problems with updating the text of a JButton...!!
Cursor problem when moving around the frames
Stoping multiple threads