I was running some code that did a printout in a swingworker. I was not getting printouts so I used SwingUtilities.invokeLater and now it works. I did not expect this result, how did this happen? I would have thought System.out.println could run outside of the EDT.
I was running some code that did a printout in a swingworker. I was
Share
That would have been pretty easy to test (not to say, even typing all the code to test this is less work then posting it here):
results in
on the console.
So yes,
System.out.printlncan be used outside the EDT