CS 134 Test Programming Errata
We have changed the online copy of the test program description to reflect the following corrections. They are provided, however, so that you can work with
the copies of the handout that were distributed in class.
- At the top of page 5, we suggest an alternate method for implementing
BitClearer and indicate that if you take that approach you should override
layerFilter. This can be done, but the more natural way to implement our
second approach would be to override pixelFilter.
- The dimensions of the second table of numbers on page 7 are described incorrectly. It says the width is 5 and the height is 4, but the width is obviously 4 and the height is 5.
- The original handout told you to use the setDividerLocation method to split the middle panel of your StegoDisplay window into two vertical regions of equal size.
This will not work if you do it before all of the window components are placed in the contentPane since Java cannot determine the actual size of the JSplitPane until it and all your other components have been have been placed in the contentPane. Accordingly, place the invocation of setDividerLocation at the very end of your StegoDisplay constructor.