• Post Reply Bookmark Topic Watch Topic
  • New Topic

Flickering JFrame images  RSS feed

coolbudds sharma
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Flickering in the repaint() method in order to paint the screen which contains an array of 100 boxes(each cantaining a unique image).Code functionality in the paint method is as follows :

every box in the array of boxes to be printed on the screen has a status variable which is set to true if the respective box is to be printed and false otherwise.A thresad is called in order to change the status of the boxes and it then calls repaint.But due to unexpected problem, Flickering is occuring in boxes images, does doublebuffering has something to do with it or is the problem other one??
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!