-
Bug
-
Resolution: Fixed
-
P3
-
1.1
-
1.1fcs
-
x86
-
windows_95
-
Not verified
masayoshi.okutsu@Eng 1997-01-09
The description below is from Fujitsu.
--
Using following procedure, java.awt.TextArea.appendText() is wrong.
Try by sample program on PC environment.
1) Input Japanes characters in TextField and return.
-> The first character of TextField is appended to TextArea.
2) delete characters in TextField.
3) Input Japanese characters again into TextField.
-> The Japanese character should be appended to TextArea again
but it is inserted.
Following sample program does not work on Appletviewer. Try it on
browser.
Source program
<APPLET code="aaa.class" width=150 height=300>
</APPLET>
-------------------------------------------
import java.applet.*;
import java.awt.*;
public class aaa extends Applet {
TextArea a;
TextField f;
aaa() {
add(a = new TextArea(5,20));
add(f = new TextField(20));
}
public boolean handleEvent(Event e) {
if(e.target == f && e.id == Event.ACTION_EVENT) {
a.appendText(f.getText());
}
return false;
}
}