This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes event dispatch thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "event dispatch thread" Watch "event dispatch thread" New topic
Author

event dispatch thread

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 808
    
    1

Hi.

We should create our GUI in EDT. So:



Do I have to create an object inside EDT or just the invocation frame.setVisible(true); is needed?


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20078
    
  30

It's recommended to do all GUI related code on the EDT, including creating your GUI objects.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: event dispatch thread
 
It's not a secret anymore!