This question will only make sense to those who are familiar with the book "Head First Java" by Sierra and Bates. I'm quite new to Java (though not to C++ and some older languages), and I have found that working my way through the book seems to be a good way to learn it. I've been running the code examples on Mac OS X 10.4.10 on a G4 Powerbook using Java 1.5.0_07. Everything went well until I got to the BeatBox example in Chapter 13 (Code Kitchen).
The BeatBox is supposed to display a GUI window (frame) consisting of three sections, west is a box with a vertically-stacked list of musical instrument names, center is a 16 by 16 array of checkboxes, and east is a box of four vertically-stacked buttons. Problem is that when I compile and run it, the center panel overwrites the west panel section so that there is blank space where the column of names should be. This seems to be a problem with the Mac implementation of Swing as I ported the *.java file to a PC (Windows XP Home, Java 6) and compiled and ran it there with no problem. BTW, I had this problem with the downloaded BeatBox source in the Code Kitchens jar; so this problem isn't a typing error on my part.
My questions are: Has anyone else encountered this problem and is there a simple fix? Is it really (as I suspect) a problem with Swing on Mac? If so, has a fix to Swing on Mac been put out yet?
TIA for any help.