-
Bug
-
Resolution: Duplicate
-
P4
-
7u6
-
generic
-
windows
Environment:
JDK: build 1.7.0_06-ea-fastdebug-b20
OS: Windows 7
Steps to reproduce:
Run the code:
------------------------------------
import java.awt.*;
public class TextTest {
public static void main(String[] args) {
Frame frame = new Frame();
frame.setSize(300, 300);
frame.add(new TextField("BeforeCR\nAfterCR"));
frame.setVisible(true);
}
}
------------------------------------
The setted text for the TextField is "BeforeCR\nAfterCR".
However the Textfield shows only "BeforeCR" text and does not show "AfterCR".
JDK: build 1.7.0_06-ea-fastdebug-b20
OS: Windows 7
Steps to reproduce:
Run the code:
------------------------------------
import java.awt.*;
public class TextTest {
public static void main(String[] args) {
Frame frame = new Frame();
frame.setSize(300, 300);
frame.add(new TextField("BeforeCR\nAfterCR"));
frame.setVisible(true);
}
}
------------------------------------
The setted text for the TextField is "BeforeCR\nAfterCR".
However the Textfield shows only "BeforeCR" text and does not show "AfterCR".
- duplicates
-
JDK-8055197 TextField deletes multiline strings
-
- Resolved
-
-
JDK-8055197 TextField deletes multiline strings
-
- Resolved
-