<Swing Dev> [PATCH] JDK-7169915 : Swing Table Layout bad repaint of the row [REGRESSION] JDK-8133864 : Wrong display, when the document I18n properties is true.

Abossolo Foh Guy guy.abossolo.foh at scientificware.com
Tue Apr 19 11:08:43 UTC 2016


Hello,

I built the recent OpenJDK8u and OpenJDK9 sources (openjdk_versions.txt) 
with the patch shown in the output_diff.txt attachment.

I applied your patch for JDK-8133864 : Wrong display, when the document 
I18n properties is true.
And I applied my patch for JDK-7169915 : Swing Table Layout bad repaint 
of the row.

All works fine in OpenJDK8u and the document is well displayed. The 
table appears as I expected with all its lines and columns (JDK-8133864 
solved), size and borders included even if we write some text inside 
(JDK-7169915 solved). I can modify it as I want.

But with OpenJDK9, the display of the document is wrong. The table 
appears as I expected with all its lines and columns (JDK-8133864 
solved), size and borders included (JDK-7169915 solved) but the entire 
document display is modified, the table is displayed on a new line. And 
the document became unuseable, I can't modify it as I want.

This morning, I ran the same test programme (CodeBug.java in attachment) 
with the Oracle JDK9 b114 (i.e. OpenJDK9 only with your patch  for 
JDK-8133864) : The table appears as I expected with all its lines and 
columns (JDK-8133864 solved) but the size and borders are bad repainted 
when we write some text inside (JDK-7169915 solved). And the document 
became unuseable too, I can't modify it as I want.

My conclusion :
1- JDK-8133864 is solved with your PATCH.
2- JDK-7169915 could be solved with my PATCH.
3- There is regression between JDK8 and JDK9 may be in the Views 
arrangement.

Best regards.

----------------------------------------------------------------------------------------------------------------------

Hello,

Could you apply the modification I suggested 4 years ago about the Bug : 
JDK-7169915 : Swing Table Layout bad repaint of the row.

The test case I had sent in 2012 is the same I used in : JDK-8133864 
Wrong display, when the document I18n properties is true.

A version of this test (called I18nLayoutTest.java) is now candidate as 
part of tests for JDK 9 (/test/javax/swing/text/TableView/)

Yours faithfully.


-- 
Abossolo Foh Guy
71 rue Guy de Maupassant
69500 Bron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output_diff.txt
Type: text/x-java
Size: 6254 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160419/f47fda06/output_diff.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: openjdk_versions.txt
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160419/f47fda06/openjdk_versions.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CodeBug.java
Type: text/x-java
Size: 8804 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160419/f47fda06/CodeBug.java>


More information about the swing-dev mailing list