Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFJ Music Box Page 392

 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic