Owl Sams Teach Yourself Java 2 in 21 Days

Day 14: Developing Advanced User Interfaces with the AWT

NOTES AND CORRECTIONS

  • Pages 357-359: A bug in JDK 1.2 Beta 3 is causing TextField components to default to a background color of black on Windows systems instead of white. This causes the text to be unreadable in the Dialog Objects project that begins on Page 357. A workaround for this problem is to explicitly set the background color of the component before adding it to a container. To do this in the TextDialog class, add the following statement between Lines 13 and 14 of Listing 14.3:
    • tf.setBackground(Color.white);

SOURCE FILES

READER QUESTIONS

  • None

LINKS

  • None