Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I display an image on an AWT panel

 
Jack Deng
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't use swing, so don't tell me the way of relate to swing
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Jack Deng
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much indeed

but I don't understand what is the purpose of use mediatracked in the method of loadimage
[ July 02, 2004: Message edited by: Jack Deng ]
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getImage returns immediately, ie, it doesn't wait around for the image to fully load. MediaTracker blocks program execution until the image is fully loaded. This becomes more important when you are loading a large image, a series of images or loading over the internet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic