JDK Version:1.2beta3-L
OS:Win95
Locale: All
This is a awt bug not i18n bug.
In Win95, When we use append method to append String in a TextArea,
only the first letter of the whole string is added to the TextArea.
In JDK1.1.4, this method work well.
Following is a short program which can show this bug.
=========================CheckTextArea.java=========================
import java.awt.*;
import java.awt.event.*;
public class CheckTextArea implements ActionListener {
TextArea t;
Button b;
public static void main(String args[]) {
new CheckTextArea();
}
public CheckTextArea() {
Frame f = new Frame();
b = new Button("Rest Text");
b.addActionListener(this);
t = new TextArea(20, 20);
f.setLayout(new BorderLayout());
f.add("North", b);
f.add("South", t);
f.pack();
f.setVisible(true);
}
public void actionPerformed(ActionEvent e) {
t.setText("");
for (int i = 0; i < 20; i ++) {
t.append("My Number is " + i + "\n");
}
}
}
======================================================================
java CheckTextArea
press the reset text button.
jim.hu@prc 1998-03-12
OS:Win95
Locale: All
This is a awt bug not i18n bug.
In Win95, When we use append method to append String in a TextArea,
only the first letter of the whole string is added to the TextArea.
In JDK1.1.4, this method work well.
Following is a short program which can show this bug.
=========================CheckTextArea.java=========================
import java.awt.*;
import java.awt.event.*;
public class CheckTextArea implements ActionListener {
TextArea t;
Button b;
public static void main(String args[]) {
new CheckTextArea();
}
public CheckTextArea() {
Frame f = new Frame();
b = new Button("Rest Text");
b.addActionListener(this);
t = new TextArea(20, 20);
f.setLayout(new BorderLayout());
f.add("North", b);
f.add("South", t);
f.pack();
f.setVisible(true);
}
public void actionPerformed(ActionEvent e) {
t.setText("");
for (int i = 0; i < 20; i ++) {
t.append("My Number is " + i + "\n");
}
}
}
======================================================================
java CheckTextArea
press the reset text button.
jim.hu@prc 1998-03-12
- duplicates
-
JDK-4122580 TextArea's method insert/replace can not work correctly in Win95.
- Closed
-
JDK-4068143 TextArea.append doesn't work on Windows 95 (after initial screen drawing)
- Closed
- relates to
-
JDK-4071976 Win95: OutputApplet shows garbage when run the JCK112a java_awt_manual tests
- Closed