How to know that EDT
is blocked (not visually but by inspecting the thread itself)? is there a way?
I'm on the way to my final university task for graduation that have bunch of charts , but have little knowledge of Swing EDT (Java generally).
have look at this piece:
SwingUtilities.invokeLater(new Runnable() {
public void run() {
// task here
}
});
If we do some tasks that modify gui component on the block (including calling another Thread) , is that already the correct approach?
And since EDT is single threaded environment, what else (at least) one part/example that blocking EDT
other than calling Thread.start()
directly inside the GUI. What method I should call to recognize that the EDT
is blocked
Before I asked this, I've read some documentation (but it fails explains to me how to prevent blocking EDT in simple explanation.)
Thanks in advance