This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I'd like to know why this won't work; it seems as though it should...I overrode the init() method so that the user can type a choice in JOptionPane, and that works when the html file is opened, but then regardless of user input, NO drawing elements appear! My sanity is slipping.....
This may be too easy, but I noticed you compare Strings using "==", which checks to see if both Strings are the same object. You need to use one of the String equals methods. Try choice.equalsIgnoreCase("C") and see if that helps. (Check the String API to make sure I spelled it right!) [ November 09, 2004: Message edited by: Jeff Bosch ]
Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Joined: Jun 24, 2002
Thanks Jeff, I appreciate the help. Such a rookie mistake, but there ya go! Anyway, that seems to have worked ok, it runs properly now. Thanks again mate!
Joined: Jul 30, 2003
You're quite welcome, Shane. I made that mistake more than once when I was first learning Java. Now I always start debugging by looking for the easy stuff.
By the way, very cool sig. I got a good laugh out of that! [ November 09, 2004: Message edited by: Jeff Bosch ]