JDK-5082064 : 1.5.0 Regression: HTML too large on all Swing components
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-08-03
  • Updated: 2004-08-06
  • Resolved: 2004-08-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.
Other
5.0 b63Fixed
Related Reports
Relates :  
Relates :  
Description
As a result of the fix for 5042095, the default size of HTML in Swing components is a few sizes too large. This makes GUIs using HTML embarassingly ugly and wrecks layout. This needs to be fixed.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-rc FIXED IN: tiger-rc INTEGRATED IN: tiger-b63 tiger-rc
13-08-2004

EVALUATION This appears to be the result of continuing to specify px in the style sheet for html displayed on components. Prior to the fix for 4960629 BasicHTML specified a font size using 'pt'. After the fix BasicHTML (SwingUtilities2 now) specified a font size using 'px'. After the fix for 5042095 CSS, by default, 'px' units are scaled by 1.3. This means that a component with a font size of 12 points (java2d's notion of point) with html text will now end up with a font size of 15 (12 * 1.3). ###@###.### 2004-08-03 ###@###.###'s evaluation appears to be correct with respect to non-text components. I've tried changing px back to pt and the problem dissapears. HOWEVER, it does not fix the problem with HTML in JEditorPane. JEditorPane still draws text too large. Another similar problem must exist elsewhere. ###@###.### 2004-08-03 JEditorPane problem seems to be a result of a similar change in default.css. The default size is currently 14px - it should be 14pt. ###@###.### 2004-08-03
03-08-2004