This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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?
subject: Beginning Java Games
Similar Threads
focus of JPanel
phone listener is not working properly
How to implement?
KeyEvent Problem
ImageObserver interface