Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending images...

 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Servlet, when we have a Frame object as ImageObserver why do we need to call addNotify() from the Frame object?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The call to addNotify is required so you can get a Graphics context. Without a Graphics context, you can't process an image file.
Bill
 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bill!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic