Top "Event-dispatch-thread" questions

The event dispatch thread, or EDT, is a special background thread which handles events from the Java GUI event queue.

How do you use the Event Dispatch Thread?

I learned about how swing isn't thread-safe. Delving deeper, I discovered that every modification to a swing component must be …

java swing thread-safety event-dispatch-thread
Why is my JTextArea not updating?

I have code as follows: class SimplifiedClass extends JApplet { private JTextArea outputText; // Lots of methods public void DoEverything() { String output = ""; …

java swing concurrency jtextarea event-dispatch-thread
DispatchQueue crashing with main.sync in Swift

Please explain to me why I am getting this crash? Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) …

ios swift event-dispatch-thread dispatch-async
JavaFx response to SwingUtilities.invokeLater

So I am aware that JavaFx's method of updating the GUI while using a thread is called Task but does …

java swing javafx event-dispatch-thread mixing
Dynamically removing component from JPanel

Here is runnable piece of code explaining the problem - I can remove s1 and s2 but not s3. This …

java swing miglayout concurrency event-dispatch-thread
updating a JProgressBar while processing

I know the subject has already been seen on many Questions and has been answered, but still, I can't get …

java swing swingworker jprogressbar event-dispatch-thread
Java running main method of other class, when JButton is pressed

I am trying to develop a JFrame which has two buttons that would let me to call the main method …

java swing main event-dispatch-thread invokelater
How do I know if I'm on the event dispatch thread?

1.Consider my code is on some line of a JPanel that I have, am I automatically on EDT? 2.Same question …

java swing jpanel javasound event-dispatch-thread
java swing clear the event queue

Is it possible to do this in a standard manner? Here is the scenario. Start doing something expensive in EDT (…

java swing event-dispatch-thread eventqueue
How can i catch Event Dispatch Thread (EDT) exceptions?

I am using a class called MyExceptionHandler that implements Thread.UncaughtExceptionHandler to handle normal exceptions in my project. As I …

java exception try-catch event-dispatch-thread