-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
tiger
-
generic, x86
-
generic, windows_2000
Save the attachments and compile and run EditorPaneTest.java. The editor pane loads an html document containing a table where each cell contains only a single image. There should be no spacing around the images and they should bump up against each other. Notice that this is not the case. There is spacing around the images. Web sites will often use tables to organize images like this and this bug makes them look really horrible.
The problem is a result of the newline characters that we generate to separate elements. These newline characters are then modeled by an InlineView which is contained in the same ParagraphView.Row that holds the ImageView. Due to the way that these views are layed out int the row, we end up with extra space around the image.
The problem is a result of the newline characters that we generate to separate elements. These newline characters are then modeled by an InlineView which is contained in the same ParagraphView.Row that holds the ImageView. Due to the way that these views are layed out int the row, we end up with extra space around the image.
- duplicates
-
JDK-4765268 1.4 REGRESSION: JEditorPane rendering of nested tables differs from 1.4
-
- Closed
-
-
JDK-4624069 JLabel with HTML text uses improper line spacing.
-
- Closed
-
- relates to
-
JDK-4690812 poor formatting of complex pages by JEditorPane, e.g. java.sun.com
-
- Resolved
-