Most voted "event-dispatch-thread" questions
The Event Dispatch Thread (or EDT) is a special thread executed in the background, used by java to process events coming from the AWT (Abstract Window Toolkit), generated by the graphical user interface. Use this tag accompanied by the [java] tag, and only when the doubt relates to the operation or use of this Thread.
Learn more…6 questions
Sort by count of
-
28
votes2
answers1666
viewsWhy should the main method dispatch the creation of the GUI to the EDT in a swing application?
According to the Java specification, much of the Swing API is not Thread-Safe and shall rotate in the Event Dispatch Thread. Like, after initializing the GUI events are fired from within of the EDT…
-
8
votes1
answer808
viewsWhat is Event-Dispatching Thread (EDT) in graphical interfaces?
When learning to build graphical interfaces with swing/AWT, you hear a lot about the Event-Dispatching Thread (or EDT). Although I already have a certain coexistence with swing, I confess that I do…
-
1
votes1
answer148
viewsPick up Frame already started from the "Event Dispatch Thread"
I have a desktop application on swing, and in it, I have a single JFrame which is always visible while the application is open. There are also some JDialogs modals dependent on this Frame, which…
-
1
votes1
answer245
viewsWhat is the difference between using Swingutilities.invokeLater(Runnable) and Eventqueue.invokeLater(Runnable) when calling a window?
I was reading this answer where it talks about the use of EDT to manipulate swing components, but there is suggested to use one of the two methods cited to "dispatch" the interface to the EDT. There…
-
1
votes0
answers210
viewsHow to thread to wait for another class to be completed and continue the code?
As well as described in the code I need a solution to give a pause in main until it waits for some call to continue the code of the class main. I know this will be solved with thread, but so far I…
-
0
votes1
answer108
viewsCapture exceptions in swingworker execution
I’m using SwingWorker to execute a method that can throw exceptions. Even forcing, the exception is not captured by Try-catch. How can I solve this case? try { (new SwingWorker < Void, Void >…
java swing exception swingworker event-dispatch-threadasked 8 years, 8 months ago Lucas Alcântara 411