JDK-6796710 : Html content in JEditorPane is overlapping on swing components while resizing the application.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-01-22
  • Updated: 2011-04-06
  • Resolved: 2011-04-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b134Fixed
Related Reports
Relates :  
Relates :  
Description
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.

Comments
EVALUATION It's a regression from CR 4419748. The problem is in the CSSBorder#paintBorder, which ignores clip area while painting.
01-03-2011

EVALUATION I finally reproduced this bug on JDK 7. In 7b20 there were plenty of html related fixes, so I assign this bug to the text team
06-02-2009

EVALUATION This is not a Vista-specific issue, it's easily reproducible on Solaris as well. The bug is a regression introduced in jdk7 b20. There are no changes from AWT team integrated in b20 but there are a lot of bugs fixed by Swing/2d team in b20, reassigning to Swing team for further evaluation.
06-02-2009

EVALUATION I ask our AWT guys for initial evaluation here, sinse they are experts in Vista-specific bugs
26-01-2009