Hi there, The code looks like it should run into a loop. At the beginning you post an InvocationEvent with the Runnable, then inside the runnable, you post another InvocationEvent with the same runnable, so this runs into a loop, swamping the event queue, and thus preventing Swing from doing anything. The reason why this works on JDK is that JDK reorganizes the events it gets, so probably a paint event gets executed in between. However, this is not something that an application should assume. What is this code supposed to do anyway? Why are you doing invokeLater() inside the runnable? This doesn't sound like a good idea at all. If you want to perform period tasks, I strongly recommend javax.swing.Timer. /Roman -- http://kennke.org/blog/
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil