This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 804
    
    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: 19649
    
  18

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
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: event dispatch thread
 
Similar Threads
code error
where to start threads
setText() not working
Which bits to call on Event Dispatch Thread?
Help with ActionListener