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 Beginning Java Games Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Beginning Java Games" Watch "Beginning Java Games" New topic
Author

Beginning Java Games

Dan Moody
Greenhorn

Joined: Feb 27, 2011
Posts: 20

Hi all,

I am currently trying to make a game and I'm struggling with loading images. For some reason (or whatever reason) I can't do it.

Code Below:





Any help would be greatly appreciated.

Thank you.
Jj Hill
Ranch Hand

Joined: Jul 25, 2011
Posts: 41

First of all, the title should be more descriptive. But here's my answer.
I don't work with icons very much, but I do know how to load a regular image:



Is this what you're looking for?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Beginning Java Games