EDT « Thread « Java Swing Q&A





1. Java: GUIs must be initialized in the EDT thread?    stackoverflow.com

I'm Jason. I'm having a bit of a problem with the Substance look and feel (https://substance.dev.java.net/). My problem is more general. I've already got my GUI written and it works fine, but ...

2. Communication between the EDT and main threads in JAVA    stackoverflow.com

I have been asking a lot of questions about a project I have been working on recently. Here is the scenario I am in and any help or point in the ...

3. Why doesn't the EDT shut down when all live threads are daemon?    stackoverflow.com

The following code slides a card across the screen. When I shut down the main window, I expect the event dispatch thread to shut down as well, but it ...

4. Check if thread is EDT is necessary?    stackoverflow.com

I have an UI implemented with Swing. One component does some work that may take some time, so I use SwingUtilities.invokeLater. However, I was reading some old code and found this ...

5. Java - SwingWorker - Can we call one SwingWorker from other SwingWorker instead of EDT    stackoverflow.com

I have a SwingWorker as follows:

public class MainWorker extends SwingWorker(Void, MyObject) {
    :
    :
}
I invoked the above Swing Worker from EDT:
MainWorker mainWorker = new MainWorker();
mainWorker.execute();
Now, ...

6. Is it allowed to load Swing classes in non-EDT thread?    stackoverflow.com

After the introduction of Java Memory Model, the Swing guidelines were changed to state that any Swing components need to be instantiated on the EDT in order to avoid non-published instance ...

7. java - how to view everything running on the event thread    stackoverflow.com

we are experiencing a bug we cannot track down where something is freezing up our swing thread (it's been almost 2 weeks now and no real results) - we are experienced ...

8. Swing thread safety boilerplate    stackoverflow.com

For the sake of simplicity, imagine an application that downloads a file. There is a simple GUI with one label that displays progress. To avoid EDT violations, like every lawful citizen ...

9. Manage GUI and EDT in mutli-task application    stackoverflow.com

I developed a Java application for create and extract archive like winrar. You can create several archive in same time with multi-thread. And recently, I wanted add an information status during ...





10. Spawing operations off to separate threads Vs executing on the EDT    coderanch.com

Hi folks. I have a pretty general question I was wondering if someone could answer. Should you always spawn potentially long running operations off on separate threads rather than executing them on the EDT? Or are there cases where it is OK to run potentially long running operations on the EDT? My question has arisen mainly because I initially spawned such ...