Very intermittent JDialog issue - the panel component is transparent
843807Jan 14 2010 — edited Jan 22 2010Hi,
I am running JRE/JDK 1.6_06 on Windows XP SP2 and am getting a very intermittent issue
(happens perhaps 1 out 200 times or so). The issue is that a new JDialog does not show its
panel component and what should be in the panel is transparent. You see what would be underneath
the JDialog in the panel. The JDialog itself is visible.
Here are some additional details.
1) If I switch to another windows app and then back to my Java App, the contents then display correctly.
2) As a workaround, I tried repainting the JDialog after it was visible in another Thread but that did not help.
3) I have my own application tracing to confirm no threading issue involved.
4) The memory/cpu are all good. This is not a race condition.
5) There is no signs of trouble in terms of an exception being thrown. The RunTime from Java is
completely clean. No issues.
6) If I simply close the JDialog and recreate the JDialog again all is well.
7) In my code, I null the JDialog instance at the point when the user closes down the dialog.
(I thought that perhaps some kind of garbage clean up might be involved?)
I suspect a low-level devise driver type issue between the JVM and Windows.
I will see if I can reproduce this on Linux.
If anyone has ever heard of or seen any issue like this before that would be helpful.
Again, there are no signs of trouble from the Java Runtime. I believe the Runtime is unaware of
any issue. I simply do not see the contents of the dialog. Again very intermittent. Hard to reproduce.
Let me know if I you need additional details. This is just to get going on this issue.
Thanks.
David Bardwell