JDK-6447908 : Menu check-mark is broken if font is large on Windows
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows
  • CPU: x86
  • Submitted: 2006-07-12
  • Updated: 2014-03-24
  • Resolved: 2014-03-24
Related Reports
Relates :  
Description
This CR has been created for tracking purposes.

We need to implement the following issues on Windows:
1) Draw check-mark as polygon instead of using custom bitmap.
It will help us to avoid the distortion after scaling.
2) Force WM_MEASUREITEM when font size for MenuItem is changed.
Otherwise, MenuItem.setFont() doesn't change size of menu item at all
if it's used after peer's creation.

Comments
Most of menus have font size for items within standard limits.
24-03-2014

EVALUATION There is a question for discussion. Currently AWT implementation provides check-marks as unscaled images (see attached unscaled.png). It sounds strange because it's reasonable to assume that when the font size for a component changes then every part of the component should scale with font changes. In case of it's really good idea to scale check-marks there are other questions. AWT allows user to change font for concrete item and so we need to decide: - should check-mark be centered or not? - should text be align with regards to width of largest checkmark? I've attached screenshot with suggested implementation (scaled.png). But I'm not sure what's the best choice for user.
12-07-2006