Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Wierd graphics problem....  RSS feed

 
James Johnson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the java swing components and i am have graphics redrawing problems. I have tried pretty much everything but I can't seem to correct it. It only does it on windows machines, not on macintoshes. I have a method that draws a bunch of lines on the screen , when the window is moved or reshaped the lines are redrawn incorrectly. I have included a screen shot below to show what I am talking about. The redrawn image is imposed over itself and all garbled. Anyone have any idea why its doing this?

[ February 12, 2002: Message edited by: James Johnson ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
My experience has been "that happens." Not very helpful. I've had success (i.e. luck) using double buffering to get around this problem.
Good Luck
-Dirk Schreckmann
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!