JDK-6480479 : SwingSet2: RadioButton "Look&Feel"->"Windows Style Look&Feel" doesn't look round on Windows Vista
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2006-10-10
  • Updated: 2011-01-19
  • Resolved: 2006-10-11
Related Reports
Duplicate :  
Relates :  
Description
Steps to reproduce:

1. Run SwingSet2 on Windows Vista (It's also reproducible on XP with
 -Dsun.java2d.noddraw=true supplied)
2. Open "Look&Feel" menu and select "Windows Style Look&Feel" item
3. Open "Look&Feel" menu once again. You'll see non-round selected RadioButton

The problem is that on Vista some rendering operations including filling of the complex
 shapes go through software pipeline. This pipeline was changed in jdk6 to have fill
 operation aligned with draw. Unfortunately, it caused some rendering problems in
 applications depended on old fill behavior. Such problems could be easily resolved
 just by setting following rendering hint before the fill code:

g2d.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL,
                   RenderingHints.VALUE_STROKE_PURE);

Comments
EVALUATION On Vista menu icons come from a theme. This bug is a duplicate of 6417622 [vista: JRadioButtonMenuItem is not properly rendered.]
11-10-2006

SUGGESTED FIX ------- src/share/classes/com/sun/java/swing/plaf/windows/WindowsIconFactory.java ------- 545a546,548 > ((Graphics2D)g).setRenderingHint( > RenderingHints.KEY_STROKE_CONTROL, > RenderingHints.VALUE_STROKE_PURE);
10-10-2006