title: Application.DoEvents() -> Equivalent function in java?
body: <p>I know that using threads is more efficient than using c# DoEvents(), but I was still wondering whether there is an equivalent function in java. I googled for it, but I couldn't find anything. </p>