+ 2

What is invoke.later() method used for in Java Swing in very simple words?

I have some trouble grasping intuitively the purpose of the invoke.later() method from the Swing.utilities. I saw it being used to build a gui, but I can do the same thing just writing GUI initialization in the View constructor. Any help greatly appreciated.

25th Jun 2022, 8:51 AM
Nick
3 Answers
25th Jun 2022, 6:55 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Ausgrindtube thanks m8, guess I’ll need to try it by writing some multi-thread app and check what problems will arise from not using this method and then how it solves the problem. Cheers!
25th Jun 2022, 7:44 PM
Nick
+ 2
All good fella! Many things don't make sense until it's absolutely essential to use it. (And for slower people like me, it still takes some time!)
25th Jun 2022, 8:50 PM
Ausgrindtube
Ausgrindtube - avatar