This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Beginning Java Games" Watch "Beginning Java Games" New topic

Beginning Java Games

Dan Moody

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?
I agree. Here's the link:
subject: Beginning Java Games