Labels not refreshed properly in MRJ 4.x

(Apple bug # 3157267)

Problem: Text typed into the TextField doesn't display properly.  In MRJ 4.3 (141DP102) only the last one or several characters typed appear in the TextField and the label.  Also, a vertical blue bar appears to the left of the TextField.

This has been reproduced in a simpler context here.

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

Source code is given below and can be downloaded as TextEcho.java

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

public class TextEcho extends Applet implements TextListener {

TextField textField;
Label textFieldLabel;

public void init() 
{
    setBackground(new Color(225,225, 255));
    textField = new TextField(9);
    textField.setEchoChar('*');
    textField.addTextListener(this);
    add(textField);
    textFieldLabel = new Label(" "); 
    add(textFieldLabel);
}

void refreshTextFieldLabel()
{
    textFieldLabel.setText("Entered \"" + textField.getText() + "\"");
    textFieldLabel.invalidate();
    invalidate();
    textFieldLabel.validate();
    validate();
}

public void textValueChanged(TextEvent te)
{
    refreshTextFieldLabel();
    System.out.println(textField.getText());
}
} // END OF Class TextEcho