-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
5.0u4
-
other
-
windows_xp
OPERATING SYSTEM(S)
Windows (simplified Chinese)
FULL JDK VERSION(S):
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
DESCRIPTION:
BorderLayout works incorrectly with ExtB character
A JFrame window appear, South and North JTextField can't displayed
- Exact steps to reproduce
1. Run testcase 'java LayoutExtBTest'
2. A JFrame window appear, South and North JTextField can't displayed <- PROBLEM
- Minimal source code that demonstrates the problem
---------- BEGIN SOURCE ----------
final String DBCSSTRINGS = "Test\uD840\uDC00";
// Constructor
public LayoutExtBTest() {
this.CompKind = "swing";
this.CompName = "JTextField";
// invoke made comp. method
makeComp(CompKind, CompName);
}
void makeComp(String compKind, String compName) {
mainFrame = new JFrame();
mainFrame.setTitle("Unicode4.0 test case ");
addJTextFieldComp();
// show main frame
mainFrame.setSize(300, 200);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
mainFrame.setVisible(true);
// mainFrame.pack();
}
void addJTextFieldComp() {
JTextField jb1 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
JTextField jb2 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
JTextField jb3 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
JTextField jb4 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
JTextField jb5 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
mainFrame.getContentPane().add("North", jb1);
mainFrame.getContentPane().add("South", jb2);
mainFrame.getContentPane().add("Center", jb3);
mainFrame.getContentPane().add("West", jb4);
mainFrame.getContentPane().add("East", jb5);
}
---------- END SOURCE ----------
- Expected output
South and North JTextField should be display with an Ext.B character.
- Actual output
A JFrame window appear, South and North JTextField can't displayed
- Any additional configuration information
The system must be set up to use a simplified Chinese locale and with GB18030 support installed
OPERATING SYSTEM(S):
OPERATING SYSTEM(S)
Windows (simplified Chinese)
FULL JDK VERSION(S):
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
DESCRIPTION:
BorderLayout works incorrectly with ExtB character
A JFrame window appear, South and North JTextField can't displayed
- Exact steps to reproduce
1. Run testcase 'java LayoutExtBTest'
2. A JFrame window appear, South and North JTextField can't displayed <- PROBLEM
- Minimal source code that demonstrates the problem
---------- BEGIN SOURCE ----------
final String DBCSSTRINGS = "Test\uD840\uDC00";
// Constructor
public LayoutExtBTest() {
this.CompKind = "swing";
this.CompName = "JTextField";
// invoke made comp. method
makeComp(CompKind, CompName);
}
void makeComp(String compKind, String compName) {
mainFrame = new JFrame();
mainFrame.setTitle("Unicode4.0 test case ");
addJTextFieldComp();
// show main frame
mainFrame.setSize(300, 200);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
mainFrame.setVisible(true);
// mainFrame.pack();
}
void addJTextFieldComp() {
JTextField jb1 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
JTextField jb2 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
JTextField jb3 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
JTextField jb4 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
JTextField jb5 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
mainFrame.getContentPane().add("North", jb1);
mainFrame.getContentPane().add("South", jb2);
mainFrame.getContentPane().add("Center", jb3);
mainFrame.getContentPane().add("West", jb4);
mainFrame.getContentPane().add("East", jb5);
}
---------- END SOURCE ----------
- Expected output
South and North JTextField should be display with an Ext.B character.
- Actual output
A JFrame window appear, South and North JTextField can't displayed
- Any additional configuration information
The system must be set up to use a simplified Chinese locale and with GB18030 support installed
OPERATING SYSTEM(S):
OPERATING SYSTEM(S)
- duplicates
-
JDK-6307514 BorderLayout works incorrectly with ExtB character
-
- Open
-