<Swing Dev> [9] Review Request for 8133108: [PIT] Container size is wrong in JEditorPane

Semyon Sadetsky semyon.sadetsky at oracle.com
Thu Aug 6 16:46:36 UTC 2015


Hello,

Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-8133108
webrev: http://cr.openjdk.java.net/~ssadetsky/8133108/webrev.01/

This a regression from JDK-8132136 after which the GlyphView does not 
wrap text for the minimum width calculation by default anymore. 
InlineView as GlyphView descendant should take care about setting the 
right resize weight now. In the solution getResizeWeight() is overridden 
in InlineView to return the right weight according to the nowrap field.
Test suite is added to check the right text positioning for wrap/nowrap 
styles in the JTextPane document.

--Semyon



More information about the swing-dev mailing list