Clipping of components in layout

(Apple bug # 3196030)

In Java 1.4.x many components are clipped in layout.  In the Java applet above, the final letter in the name "Checkbox" for each component is not displayed.  Sometimes this bug is not seen on first launch of the Safari browser, but clicking the refresh button reloads the applet and demonstrates the problem.  

If you have any insights, workarounds or comments about this test page please contact Mickey Segal.  A listing of  many Java resources is at this link.

Source code:

import java.applet.*;
import java.awt.*;

public class boxes_line extends Applet {

public void init() 
{
    setBackground(new Color(225,225, 255));
    int number = 5;
    Checkbox[] checkbox = new Checkbox[number];
    Font font = new Font("Serif", Font.BOLD, 17);
    for (int i=0; i<number; i++)
    {
        checkbox[i] = new Checkbox("Checkbox");
        setFont(font);
        add(checkbox[i]);
    } 
}
} // END OF Class boxes_line