> I don't think the code is correct. > > The two calls to SwingUtilities.invokeLater(r); are suspicious to me. > If you remove one of them (try the one in the runnable), it works again. > > I see an egg and chicken problem here: we call recursively the Threads. > > Maybe Sun code detects this, while we don't, and maybe we should do the > same here, I have to check. > > Cheers, > Mario > > Hi Mario, thanks for your interest. I tried commenting SwingUtilities.invokeLater(r) call in Runnable but now the application is behaving in a different/wrong way (i.e. it is always showing the same "deltaTime" for every lines -- the original code compiled with openjdk shows different "deltaTime" for every line). Do you know any workaround for this problem? Thank you, Francesco