-
Bug
-
Resolution: Won't Fix
-
P3
-
1.4.2_07
-
x86
-
windows_xp
JTextArea has bad LineWrapped process on Japanese Characters in
JDK 1.4.2. The bug does not occur in JDK 1.5.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile the following simple program, and just run it on Windows XP Japanese
Edition.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The character which might exceeds the end of the line should be line wrapped.
See the attached jpeg file.
ACTUAL -
The last chracter on each lines dose not display completely.
See the attached jpeg file.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import java.awt.*;
public class JFrameTest extends JFrame {
public JFrameTest() throws HeadlessException {
}
public static void main(String[] args) throws HeadlessException {
JFrameTest frame = new JFrameTest();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel panel = new JPanel( new BorderLayout() );
JTextArea editor = new JTextArea();
editor.setFont(new Font("Monospaced", Font.PLAIN, 14));
editor.setLineWrap(true);
editor.setText("\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f" +
"\u3051\u3053\u3055\u3057\u3059\u305b\u305d \u305f" +
"\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d" +
"\u306e\u306f\u3072\u3075\u3078 \u307b\u307e\u307f" +
"\u3080\u3081\u3082\u3084\u3090 \u3086\u3091\u3088" +
"\u3089\u308a\u308b\u308c\u308d\u308f\u3092\u3093");
panel.add(editor, BorderLayout.CENTER);
frame.getContentPane().add(panel);
frame.setSize(200,200);
frame.setVisible(true);
}
}
###@###.### 2005-04-11 13:21:41 GMT
JDK 1.4.2. The bug does not occur in JDK 1.5.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile the following simple program, and just run it on Windows XP Japanese
Edition.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The character which might exceeds the end of the line should be line wrapped.
See the attached jpeg file.
ACTUAL -
The last chracter on each lines dose not display completely.
See the attached jpeg file.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import java.awt.*;
public class JFrameTest extends JFrame {
public JFrameTest() throws HeadlessException {
}
public static void main(String[] args) throws HeadlessException {
JFrameTest frame = new JFrameTest();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel panel = new JPanel( new BorderLayout() );
JTextArea editor = new JTextArea();
editor.setFont(new Font("Monospaced", Font.PLAIN, 14));
editor.setLineWrap(true);
editor.setText("\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f" +
"\u3051\u3053\u3055\u3057\u3059\u305b\u305d \u305f" +
"\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d" +
"\u306e\u306f\u3072\u3075\u3078 \u307b\u307e\u307f" +
"\u3080\u3081\u3082\u3084\u3090 \u3086\u3091\u3088" +
"\u3089\u308a\u308b\u308c\u308d\u308f\u3092\u3093");
panel.add(editor, BorderLayout.CENTER);
frame.getContentPane().add(panel);
frame.setSize(200,200);
frame.setVisible(true);
}
}
###@###.### 2005-04-11 13:21:41 GMT