Article View: borland.public.jbuilder.java.language
Article #16955Re: newbie looking for coaching...
From: Paul Gifford
Date: Wed, 06 Jan 1999 00:00
Date: Wed, 06 Jan 1999 00:00
29 lines
1284 bytes
1284 bytes
Hello, The error message is correct...you can getImage for an applet, not an application. I suggest you look at java.awt.Component, specifically getToolkit(). Once you have the toolkit, you do something like myToolkit.getImage(filename). Hope this helps... p On Tue, 05 Jan 1999 22:55:20 -0500, Mark Harmon <harmonma@cybergate.net> wrote: >I'm trying to figure out how to work with graphic file (gifs, jpg, etc). >I want to show them on the background and at the click of a button have >the image change. Can anyone give me some simple pointers? I'm playing >with an app not applet. I tried something like >Image = testImage >testImage = getImage (c:yadaa yadaa) >g.drawImage... >error message tells me that getImage is not part of myapp.class > >Thanks in advance.... >
Technical Details
Message-ID:
<369398e7.4932574@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3692DEA8.55667A88@cybergate.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c431a521832ad769 X-Google-Attributes: gidf74b3,public From: paul.gifford@ibm.take.me.outta.here.net (Paul Gifford) Subject: Re: newbie looking for coaching... Date: 1999/01/06 Message-ID: <369398e7.4932574@forums.inprise.com> X-Deja-AN: 429465689 References: <3692DEA8.55667A88@cybergate.net> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language