But .... the one, main question is: why?
What are you trying/expecting to do?
Type: Posts; User: andbin
But .... the one, main question is: why?
What are you trying/expecting to do?
Unfortunately I don't/can't know why you are using that _runnableList, why you would like to get 1 Runnable from list and dispatch it to the EDT (in the paint context) and what you are trying to do...
No ... in the sense that I don't/can't know if this is the cause of the NPE. Simply I noticed your design and pointed out the conceptual issue about that.
From this code I see that SwingUtilities.invokeLater can be called in the context of the paint. I don't think this is a good idea. A paint can be called many times and for several reasons. Thus the...