Article View: borland.public.jbuilder.java.language
Article #17955Newbie Q - setImageName?
From: leahey
Date: Fri, 04 Sep 1998 00:00
Date: Fri, 04 Sep 1998 00:00
22 lines
1077 bytes
1077 bytes
Hello, I'm a Delphi programmer trying JBuilder/Java for the first time and
fooling about with a little applet.
To say I don't know Java is an understatement.
I want to change the image of a TransparentImage control in the mouseEntered
event.
What is wrong with this code?
void img_Btn1_Music_mouseEntered(MouseEvent e)
{
img_Btn1_Music.setImageName("C:\\jbuilder2\\myprojects\\RKLWebSite\\MusicDn.
gif");
}
When I try to compile I get: "unreported exception: java.io.IOException;
must be caught or declared to be thrown"
JBuilder's "help" leaves a little to be desired on this topic.
Thanks,
leahey
Technical Details
Message-ID:
<6spkve$m8414@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,b2f1cea34d179d0d,start X-Google-Attributes: gidf74b3,public From: "leahey" <rkleahey@epri.com> Subject: Newbie Q - setImageName? Date: 1998/09/04 Message-ID: <6spkve$m8414@forums.borland.com> X-Deja-AN: 387964884 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: borland.public.jbuilder.java.language