• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

HFJ Music Box Page 392

 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
A tiny monkey bit me and I got tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic