This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFJ Music Box Page 392
 
Similar Threads
Head First Java problem
MiniMusicPlayer2 class in Head First Java book (Chapter 12)
Java Class hangs after run
How LOLbad is this stylistically?
MiniMusicPlayer HFJ