-
Images will not display
I read the applet game tutorial written by that German guy. However, the code he uses to display images doesn't seem to work. No image is displayed at all. I've looked my problem up at java.com and have been utterly astonished at the complexity of their answers. So anywho, I'm on Java 2, SE v1.4.2_06. The code I got from the tutorial was:
Image backImage;
...
int(){ backImage = getImage(getCodeBase(), "land.gif");}
...
paint(Graphics g){g.drawImage(backImage, 0, 0, this)};
The whole point of the image is as a background.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks