File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Game Development and the fly likes MediaTracker Practices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "MediaTracker Practices" Watch "MediaTracker Practices" New topic
Author

MediaTracker Practices

R Johnson
Greenhorn

Joined: Jan 05, 2010
Posts: 28

Hello all,
First let me take a second and explain that I'm not providing real code (code will not compile) at the moment because the actual code is very very long and I have no issues other than I'm just trying to make a splash screen because it is taking a little while to load the images in the beginning. I am happy to offer real code and I realize that I may not be very efficient in my code and am very interested in how I can be more efficient once I figure out how to complete the task I need. Currently I have an applet














The only thing that happens though is I don't get the splash page until the images have loaded because the images load one by one as evidence by my System.out.println("getting image : "+path); in the ImageHandler class's addImage method and I never get the StoryPage run method System.out.println("story page running"); . I would like the images to load with a splash screen and I had thought mediatracker was the way to go with this. Any suggestions or help would be greatly appreciated. Again the code above is not real and I hand coded it in the forum text box so there is probably a lot wrong with it I was just attempting to provide the architecture of the program so I could be given the best place to test the images.

Thanks again for any help this community can provide I have had better luck here then most other forums.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MediaTracker Practices
 
Similar Threads
MediaTracker Practices
Problem displaying images
Java Forums - Image only shows after screen is reloaded (hidden and showed again)
Using Graphics in a BorderLayout
Image smoothing