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.
The moose likes Beginning Java and the fly likes HFJ Music Box Page 392 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HFJ Music Box Page 392" Watch "HFJ Music Box Page 392" New topic
Author

HFJ Music Box Page 392

Davy Kelly
Ranch Hand

Joined: Jan 12, 2004
Posts: 384
Hey Guys,

been a while, still getting back into it, but on page 392 of the Head First Java, I was doing the Music Box program with GUI.

I get an error from the code, and I am not sure why.

the 1 error I get is this line of code


i get this error:


I copied the code directly, i fixed other errors I done, but I have been looking at this for over an hour now, and cant get it.

here is the full program code:


any help will be appreciated.

davy

[ November 18, 2006: Message edited by: Davy Kelly ]
[ November 18, 2006: Message edited by: Davy Kelly ]

How simple does it have to be???
Davy Kelly
Ranch Hand

Joined: Jan 12, 2004
Posts: 384
Woo Hoo,

I figured it out, because I have another version of MyDrawPanel, I renamed the one in this program as MyDrawPanel1 and I forgot to fix the declerations of them, so some had MyDrawPanel and some had MyDrawPanel1, its all fixed now.

it took me a while, but I got there.

I think I need a break now.

davy
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HFJ Music Box Page 392