Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4991598
Votes 0
Synopsis Win L&F: Icon glyph for radio button menu item is wrong in winxp L&F
Category java:classes_swing
Reported Against tiger-beta
Release Fixed mustang(beta)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs 4199382
Submit Date 10-FEB-2004
Description




FULL PRODUCT VERSION :
1.5 Beta 1

ADDITIONAL OS VERSION INFORMATION :
 customer  Windows XP [Version 5.1.2600]

EXTRA RELEVANT SYSTEM CONFIGURATION :
Not Applicable

A DESCRIPTION OF THE PROBLEM :
Using windows XP L&F in swing, Icon glyph for radio button menu item is wrong.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Screenshot comparisons can be seen on the following link:
https://winlaf.dev.java.net/release_0.4.html#Issue16

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Use the following SWING PATCH/HACK:
https://winlaf.dev.java.net/release_0.4.html
(Incident Review ID: 237454) 
======================================================================
Work Around
N/A
Evaluation




There are two problems with the RadioButtonMenuItems in Windows L&F:

1. We are not registering WindowsIconFactory's generated class that paints selection mark in WindowsLookAndFeel class.
Because of this we are using BasicIconFactory methods to do so.

2. The method that exists in the WindowsIconFactory does not paibt selection mark correctly (Mark is too big and not centered).

To fix this i suggest to add the code that will initialize the WindowsIconFactory inner class to paint selection mark for RadioButtonMenuItems
 and to fix this class to paint mark correctly. Due to the bug in Java2D code small circles is being painted incorrectly (fuzzy). To
avoid this problem i suggest to paint mark as rounded rectangle. See Suggested Fix section for the diffs.

  xxxxx@xxxxx                  03/15/2004


======================================================================
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang