• Post Reply Bookmark Topic Watch Topic
  • New Topic

java and swing  RSS feed

 
Pradeep Somasundaram
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when my jframe is minimized and restored the canvas images are gone. i call repaint method with no use. could any one comment on this.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you painting on your canvas? Overriding the paint() method or doing a getGraphics()? If you want your painting to be permanent you have to do it in the paint() method...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!