-
Bug
-
Resolution: Won't Fix
-
P2
-
6u14
-
generic
-
windows_vista
Customer is Ephox that holds a valid Java For Business contract.
If we run the following sample program on 1.6.0_14
public class JEditorPaneTest {
private static String dirRTL = "<div dir='rtl'>Hello</div>";
public static void main(String[] args) {
JFrame frame = new JFrame("JEditorPane test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JEditorPane pane = new JEditorPane();
pane.setContentType("text/html");
pane.setText(dirRTL);
frame.getContentPane().add(pane);
frame.setSize(400, 200);
frame.setVisible(true);
}
}
Hello is aligned left in the JEditorPane. If the dirRTL string is saved in an HTML document (http://vm44.singapore.sun.com:7480/a.html) and rendered in a browser, Hello is aligned to the right.
If we run the following sample program on 1.6.0_14
public class JEditorPaneTest {
private static String dirRTL = "<div dir='rtl'>Hello</div>";
public static void main(String[] args) {
JFrame frame = new JFrame("JEditorPane test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JEditorPane pane = new JEditorPane();
pane.setContentType("text/html");
pane.setText(dirRTL);
frame.getContentPane().add(pane);
frame.setSize(400, 200);
frame.setVisible(true);
}
}
Hello is aligned left in the JEditorPane. If the dirRTL string is saved in an HTML document (http://vm44.singapore.sun.com:7480/a.html) and rendered in a browser, Hello is aligned to the right.
- relates to
-
JDK-4866977 RTL HTML Table fails under JDK1.4.1 and JDK1.4.2, DIR TAG is not supported
-
- Closed
-
-
JDK-4296022 html4.x support within a JEditorPane
-
- Open
-