JDK-6816700 : Swing L&Fs should use mixing-cutout API when appropriate
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u14
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2009-03-12
  • Updated: 2017-05-23
Related Reports
Relates :  
Description
Swing L&Fs (for instance, Windows, GTK, and Nimbus) use rounded corners for regular components (like, say, buttons). When the components get mixed with heavyweight components, visual artifacts appear at the corners: they do not get rendered, though they get cut-out from the shapes of hw components.

To overcome the problem the L&Fs should specify the mixing-cutout-shape for the components using the new API provided with 6797587 in 6u14b02.

Comments
EVALUATION In JDK 7 we should provide a new method in ComponentUI, something like Shape getShape(Component, Dimension) to allow UI flexibly change to component's shape depending on a current size fixing it in JDK 6 is more problematic
12-03-2009