Html content in JEditorPane is rendering on swing components while resizing the window.
I have observed this odd behavior while reducing the size of the application that contains a EditorPane,Button and ScrollPane.
Please run the attached java file to reproduce the issue.
1. Launch the application.
2. Reduce the size of application by using mouse.
Now you can see the html content is rendering on top of the swing component.
Please check the attached screen shots(image1.png and image2.png) for reference.
JDK Version
===========
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b43)
Java HotSpot(TM) Client VM (build 14.0-b10, mixed mode)
I have checked in the following OS's.
Win vista sp1
Solaris 10 x86.