• Post Reply Bookmark Topic Watch Topic
  • New Topic

repaint () not getting called inside Canvas

 
Nirmal JeyaChandra
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a frame and I have created a class inside frame which extends Canvas and I have paint() method inside this class.

When I call repaint() method from this canvas class the paint() method is not being called.

The paint() gets called only when the frame gets resized.

Please help me how to use repaint() inside canvas class.

Please help
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing/AWT.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!