<Swing Dev> [14] RFR 8226513:, JEditorPane is shown with incorrect size

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Mon Jul 22 10:31:28 UTC 2019


Hi Semyon,

Although the JBS testcase is passing with your change, your testcase is 
failing even with the fix for me in windows10

java.lang.RuntimeException: Wrong size 
java.awt.Dimension[width=181,height=44] expected 
java.awt.Dimension[width=180,height=44]
         at JEditorPaneLayoutTest.main(JEditorPaneLayoutTest.java:84)

Regards

Prasanta

On 17-Jul-19 1:33 AM, semyon.sadetsky at oracle.com wrote:
> bug: https://bugs.openjdk.java.net/browse/JDK-8226513
>
> webrev: http://cr.openjdk.java.net/~ssadetsky/8226513/webrev.00/
>
> The fix adds resetting the root view initialization flag when the text 
> component underling document is changed and also removes the check for 
> the zero component size for the root view initialization to correct 
> the resulting preferred component size in some scenarios when the root 
> view need to be initially layouted.
>
> --Semyon
>
>


More information about the swing-dev mailing list