removed comments on RubberBand from s04 lecture 2, as comments are not discussed until ch2.
moved SunAndMoon from s04 lecture 2 into ch2, as it uses the color class which is not discussed until ch2.
moved BetterBasketBall from s04 lecture 4 into ch4, as it uses conditionals which are not discussed until ch4.
updated comments on BetterBasketBall to reflect its behavior
moved CelestialCycle from s04 lecture 4 into ch4, because of conditionals.
updated comments on CelestialCycle to reflect its behavior
moved RandomColors from s04 lecture 4 into ch4, because it uses conditionals as well as the random number generator.
updated comments on RandomColors to reflect its behavior
updated comments on BestBasketBall from s04 lecture 5
added comments to DoubleWhatADrag from s04 lecture 5
moved BBall4One and BBall4Two from s04 lecture 6 to ch6, as they both use separate classes to define a BBall, which is not discussed until ch6
corrected typo in comments for 'onMouseMove' method of Spiral from s04 lecture 6.
moved SimpleBBall4One from s04 lecture 6 folder (it wasn't linked on the page) to ch6, as it uses a separate class
updated comments on Spiral from s04 lecture 8 to reflect its behavior
removed MAKEMEbegin() method of WagonWheel from s04 lecture 9 because it was never called. I then moved WagonWheel into the ch7 examples as it did not use any of the concepts taught in chapter 8.
wrote RainCloudController class for RainCloud.
wrote CreditScrollerController class for CreditScroller (both the plain and smooth-scrolling versions).
corrected typo in run() of FallingBall for the PatheticPong program
added comments to PatheticPong, StillPatheticPong, and Pong to reflect their individual behavior
corrected typo in dropTheBall method of BouncingBBall.
added comments to Dribble.java from the BouncingBBall program to clarify the purpose of some of its constants
corrected typo in comments of DrawingProgram from s04 lecture 12
changed comments for LaundrySorter programs from s04 lecture 12 to reflect their behavior.
updated comments on lecture programs from s04 lectures 13,14, and 15.
wrote control class for NestedRects programs from chapter 12
wrote graphical control class for UrlList program from chapter 12
updated comments on BullsEye, ChainReaction, and LivingFractal examples from lectures 16, 17, and 18
replaced while loops with for loops in Snow example from s04 Lecture 19
removed oldonMouseClick method from Knitting example from s04 Lecture 19 because it contained the same code as another method and was never called.
rewrote RadarStats class to match code presented in textbook
wrote RaceController gui for RaceStatistics class defined in ch.14
wrote CalendarController gui for YearlyCalendar class defined in ch.15
wrote MagicSquares program to implement method
as defined in ch.15
altered Smoothing program to match code as defined in the textbook
altered ImageEdit example from s04 lecture 23 to use a picture of hopkins hall rather than one of a student, which seemed more appropriate
wrote FrameMaker program to display the various types of frames defined in ch.17
moved TicTacToe example from s04 lecture 24 into ch.15 lectures folder as it dealt with 2d arrays.
Made the changes requested by Tom through chapter 5, including adjusting constants for the Voting and FourVoting classes of chapter 4
adapted CalendarController example from ch.15 to use code samples provided in ch.18 as examples
altered PigLatin program from s04 lecture 28 to extend Controller rather than JApplet
moved PigLatin into ch.16 lecture examples as it was designed to demonstrate string methods
placed BBall examples from ch.6 lectures into a group
placed Pong examples from ch.9 lectures into a group
placed BouncingBall examples from ch.14 lectures into a group
placed SuperPong examples from ch.14 lectures into a group
wrote BookmarkController class to run as application although it is introduced in the text as an applet
altered example programs from s04 lectures 29,30, and 31 to run as applications rather than applets so that they would be able to read and write from the file system
made changes recommended by Tom through chapter 8
re-wrote SortSearchTimer demo from s04 lecture 33 to use the searching/sorting algorithms presented in the textbook, then used it as the textbook example for ch.20
altered SortDemo program from s04 lecture 33 to use external classes rather than internal classes to define searching/sorting algorithms
made changes recommended by tom through chapter 10
made changes recommended by Andrea through chapter 12
ICanCount program on p.83 of ch.3 starts counting at 1, perhaps this should be 0, as it is with the version that counts to the console.
DrawGrid program on p.127 of ch.5 does not compile. It needs 0's added
to the lines that create the FilledRects ClickTimer program on p.141 of ch.5 does not compile. It needs a 'new'
added before 'Location' when declaring TEXT_POS FaceDrag program on p.155 of ch.6 says it uses the FunnyFace class,
it does not. typo in word "resulttt" on p.223 of chapter 8 RainCloud class on p.238 of ch.9 does not compile. It should use
canvas.getWidth() as the second parameter to the
RandomIntGenerator constructor instead of
I'm seeing some strange behavior in the CreditScroller programs
from chapter 9. They compile and run, but after a seemingly random
stretch of time they stop running. The program does not seem to be
stuck in a loop, as
System.out.println() text stops being
written. Top also reports cpu usage for the process to be 0.0%
after it halts. The applets run normally under internet explorer,
which I believe uses the microsoft java virtual machine.
It may be the case that Text objects are the only ones that behave this way, as FilledOvals worked without an issue.
FallingBall on p.349 of chapter 11 does not compile. It needs a
';' after the
speed = initSpeed line. It also needs to
have the canvas stored as local variable for use in the
SliderBallController on p.361 of chapter 11 does not compile. It
needs "new" in front of the JSlider constructor GUIApplet on p.368 of chapter 11 appears with the text
'backslash$.n' instead of
Craps on p.447 of chapter 13 is missing the line
new Text("", 10, 50, canvas); in the
drawHistogram() method which appears on p.475
of ch.14 should declare
totalspeeders as a
double so that the results of
doesn't get rounded to integer accuracy. The same change needs to be
made to the
drawHistorgram() method which is defined
on p.477 of ch.14.
smoothImage() method defined on p.481 of ch.15 has
an extra "
);" at the end of a line.
FramedText class defined on p.533 of ch.17 has a
positionContents() which is later used
FramedCounter, so it needs to be declared protected,
but this change is not mentioned in the text.
FramedText class defined on p.540 of ch.17 calls
message.moveTo( displayX(), ...) inside of its
positionContents() method. This should be changed
message.moveTo( displayLeft(), ...)
SteadyTester program defined on p.130 of ch.5
mouseClick method rather than
in several places in ch.18, starting at the section about
exception subclasses, the textbook refers to a
RunTimeException. This should be changed to
JustAWindow class defined on p.607 of ch.19 needs
int" in its constant declarations
getTemp() method defined on p.626 of ch.19 has a
"-" in its
printline(...) statement which should be a "+"
typo on p.660 of ch.20, in explaination of insertion sort the text
reads "care" instead of "card" the contructor method for the
Cup class defined on
p.694 of ch.21 uses the constant HEIGHT_RATIO in two places instead
the constructor method for the
Cup class should use
Location upperLeft as its first parameter instead of
onMouseDrag method for ShellGame defined on p.699 of
ch.21 should use the variable
selectedCup instead of
onMouseDrag method for ShellGame calls the method
getyY() in two places instead of
run() method of Shuffler class defined on p.710 of
ch.21 needs "
int" before its use of
in the for loop.