-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
6
-
x86
-
windows_xp
FULL PRODUCT VERSION :
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
In JList with String that contains <HTML> tag:
- if you have certain arabic characters (\u0650 - \u064E - \u064D - \u064B - \u064F - \u064C) in the <HTML> tag the hight of the one list item will be two lines instead of one. This only happens if there are arabic letters with these characters. If you put an english letter with them everything will be correct.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run the code
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
all list items should be one line hight.
ACTUAL -
list items have 2 line width
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class table extends JFrame
{
public table()
{
final DefaultListModel listModel = new DefaultListModel();
// Letters that causes the problem \u0650 \u064E \u064D \u064B \u064F \u064C
// With another arabic letter -> error
listModel.addElement("<html>\u062A \u064E</html>");
// with english & arabic letter -> no errors
listModel.addElement("<html>\u062A d \u064E</html>");
// Without any additional letters -> no errors
listModel.addElement("<html>\u064E</html>");
JList list = new JList();
list.setModel(listModel);
getContentPane().add(list);
setSize(200,200);
setVisible(true);
}
public static void main(String[] args){new table();}
}
---------- END SOURCE ----------
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
In JList with String that contains <HTML> tag:
- if you have certain arabic characters (\u0650 - \u064E - \u064D - \u064B - \u064F - \u064C) in the <HTML> tag the hight of the one list item will be two lines instead of one. This only happens if there are arabic letters with these characters. If you put an english letter with them everything will be correct.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run the code
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
all list items should be one line hight.
ACTUAL -
list items have 2 line width
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class table extends JFrame
{
public table()
{
final DefaultListModel listModel = new DefaultListModel();
// Letters that causes the problem \u0650 \u064E \u064D \u064B \u064F \u064C
// With another arabic letter -> error
listModel.addElement("<html>\u062A \u064E</html>");
// with english & arabic letter -> no errors
listModel.addElement("<html>\u062A d \u064E</html>");
// Without any additional letters -> no errors
listModel.addElement("<html>\u064E</html>");
JList list = new JList();
list.setModel(listModel);
getContentPane().add(list);
setSize(200,200);
setVisible(true);
}
public static void main(String[] args){new table();}
}
---------- END SOURCE ----------