Questions tagged as 'event-dispatch-thread'

1
answer

What is Event-Dispatching Thread (EDT) in GUIs?

When you are learning how to construct graphical interfaces with swing / AWT , you hear a lot about the Event-Dispatching Thread (or EDT ). Although I already have a certain coexistence with
asked by 25.02.2016 / 14:15
1
answer

What's the difference between using SwingUtilities.invokeLater (Runnable) and EventQueue.invokeLater (Runnable) when invoking a window?

I was reading this answer where you talk about using EDT to manipulate swing components, but there it is suggested to use one of the two methods quoted to" dispatch "the interface to EDT. > There is a difference between using SwingUtil...
asked by 11.01.2017 / 14:05
1
answer

Get Frame already started from the "Event Dispatch Thread"

I have a desktop application in swing , and in it, I have a single JFrame that always stays visible while the application is open. There are also some% modal_dependents dependent on this Frame , which open from certain buttons in...
asked by 05.04.2016 / 17:47
0
answers

How to make a thread to wait for another class to be terminated and continue the code?

As described in the precise code of a solution to give a pause in main until it waits for some call to continue the code of the main class. I know this is resolved with thread , but so far I have not figured out how to use...
asked by 16.12.2017 / 09:28
1
answer

Capturing exceptions in the execution of the swingworker

I'm using SwingWorker to execute a method that can throw exceptions. Even forcing, the exception is not caught by try-catch . How can I resolve this? try { (new SwingWorker < Void, Void > () { @Override protec...
asked by 23.04.2016 / 01:10