File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "When initial thread will complete" Watch "When initial thread will complete" New topic

When initial thread will complete

Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 103


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 ?

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
I agree. Here's the link:
subject: When initial thread will complete
It's not a secret anymore!