Hi Hilde,

On Tue, Jan 17, 2006 at 08:23:43PM +0100, Hildegarde Roth wrote:
 > I am still using 1.4.2_10, on Windows XP. I do remember
 > reading about the blog entries you mentioned but Mustang
 > is still far away in the future, so I kind of forgot about
 > it: what point is there drooling over things that are still
 > years away ;-) Also, because I did not see this behaviour
 > until recently, I was thinking it must be my fault.

  Understood. Since the painting happens on the Event Dispatch thread
  I'd check if you have something heavy running on that thread. That
  would cause the repainting to be delayed giving an appearance of
  unresponsive GUI.

  A typical mistake would be doing some calculations in event
  listeners, or something like that.

 > Now, from re-reading these blog entries it would seem
 > that 2 or more different widgets must be competing for the
 > global off-screen buffer, so that (to borrow from the
 > hardware jargon) its image cache is always "cold" when the time
 > comes  for it to be used by the JTree and that furthermore for some
 > reason or other I had miraculously avoided such contention so

  Hm. I'm not sure what in those blogs lead you to this conclusion.

  The reason for the gray rectangle problem is the way repaint events
  are handled by AWT/Swing (the background is cleared on one thread and
  repaint happens sometime later on another thread) and the fact that
  Swing wasn't doing true double-buffering, but using the back-buffer
  more like a scratch buffer.

 > far. Does that sound correct to you? That does not sound quite
 > correct to me because with most GUIs being composed of so many
 > widgets there should always be much contention and thus you
 > should always observe the dreaded gray rectangle pathology
 > but in fact you don't.
 >
 > I will download Mustang and give it a try but I wish I could
 > get rid of this disgrace before then: I am only now
 > moving to 1.5, so I let you imagine when I'll be using 1.6...
 > Would looking for which dirty areas are put in the queue and
 > in which order give me a cue? And would it ba an
 > _actionable_ cue?

  As I suggested above, check your event handlers. Profile your
  application, see where the time is going.

  Thank you,
    Dmitri

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to