• Post Reply Bookmark Topic Watch Topic
  • New Topic

Another Image Doesn't Display Thread

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm quite aware that there's already a thread similar to mine. I tried searching but couldn't get the right answer. I'm suspecting that my problem is in some way different from those I've seen... So here's my problem... I try to display an image to JFrame. I do this with the use of 2 classes... My ImageExtractor class and a helper class which is ImageLoader. I get no problem displaying the image except that sometimes when I first load the app, it doesn't display until I get another window on top of it. Here's my code...

JavaSpriteTest.java - Main Class


[B]ImageLoader.java[b]


ImageExtractor.java


It would be fun to get some help. Thanks guys!
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a lot of code to do something simple like load and display an image.
Try this:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!