I often have a problem where my Swing windows get created messed up. I've
attached
a couple of gifs to show what I mean. This usually (if not always) happens
with a
frame or dialog is being created and is not 100% reproducible. My guess
would be that
it is the result of a race condition but I have no idea how to work around
it. My solution
to date is to simply kill that application and start it again. It happens
under both the
latest Blackdown and Sun 1.3 jdks (and all other JDKs in the last 6 months
or so). I don't
think it happens under windows. Is this a known problem, or something I'm
doing wrong with
Swing? My apologies if sending images to the list is taboo, but it's the
best way to show what
is happening.
<<messedup.gif>> <<ok.gif>>
messedup.gif
ok.gif