FULL PRODUCT VERSION :
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.16299.98]
A DESCRIPTION OF THE PROBLEM :
All Swing UI components are extremely slow when displaying Hebrew text. Whether it's JTable, JTextArea, JTextPanel, etc., when displaying reasonably sized paragraph of Hebrew text (even at 100-200 words) is very slow, in the order of seconds, and it keeps being slower and slower as the amount of text increases.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
String hebrewText = // some Hebrew text here, even a paragraph of about 100 words is sufficient.
JTextArea x = new JTextArea();
x.setText(hebrewText);
Possibly do something to make this show up as well, measure the time and you'll see that it is extremely slow compared to displaying text in English.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The performance for displaying Hebrew texts should be better
ACTUAL -
The performance is horrible. This is observed across multiple machines running various versions of Windows (10, 8, 7).
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
String hebrewText = // some Hebrew text here, even a paragraph of about 100 words is sufficient.
JTextArea x = new JTextArea();
x.setText(hebrewText);
Possibly do something to make this show up as well, measure the time and you'll see that it is extremely slow compared to displaying text in English.
---------- END SOURCE ----------