www.ClassicTW.com
https://mail.black-squirrel.com/

OFF-TOPIC
https://mail.black-squirrel.com/viewtopic.php?f=1&t=9609
Page 1 of 1

Author:  Blackhawksq1 [ Mon Oct 08, 2001 10:11 pm ]
Post subject: 

Hi I know this is WAY off topic and I apologize but I can't find help anywhere else and i know the J-Twat people read this. Here's my problem In my system design and analysis class we have to create a console app using J++. The app is a simple calculator that shows a happy face when the answer is positive and a sad face when negative. This being my first java program has me a delima :) I don't know how!.. I have to calculator working great but i can't get it to show a GIF. here is the code i have for the picture

public void face (Graphic g)

Image smile = getImage(getCodeBase(), "smile.gif");
g.drawImage(smile,0,0,this);

I get the error Graphics doesn't have method drawimage(image, int, int, obeserver)

can someone please help me out?


"An Eagle can't soar unless the sky is limitless"

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/