JDK-6987850 : When shaped window is resized it is gracelessly repainted
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2010-09-28
  • Updated: 2011-01-19
  • Resolved: 2010-11-24
Related Reports
Relates :  
Relates :  
Description
The attached code creates JFrame which updates shape in componentResized method. When this window is resized on Windows Vista Aero it shows a lot of unattractively looking repainting artefacts making the whole feature doesn't look attractive.

Comments
EVALUATION With a fix for 6993784, which is currently in progress, a decorated window won't be able to become shaped, and therefore the provided test won't run throwing an IllegalComponentState exception on a call to setShape(). Therefore I'm closing this bug as 'Not a Defect'. If a similar issue is still reproducible after 6993784 is fixed and integrated, feel free to re-open the bug and provide an updated test.
24-11-2010

EVALUATION Decorated windows should not be shaped. See 6990924.
13-10-2010

EVALUATION I can see the visual artifacts during resizing, repainting of window decorations cause the most problem, not sure if it can be optimized reassigned to AWT team
12-10-2010