JDK-6435825 : Win Vista: add animation support for swing components
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_vista
  • CPU: generic
  • Submitted: 2006-06-07
  • Updated: 2010-04-02
  • Resolved: 2006-08-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b97Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Multiple UI components have animations effects on Vista. We need to implement that for WinLaf on Vista.
Vista might have transition for every PART on every STATE change. This
fix implements this for swing. It tracks the current state for every
(component, PART) and triggers animation if needed. Where animation is
alpha-blending of the skin in new STATE over the skin in the old STATE
with the alpha value which depends on the time animation has started and on
transition duration which we take from the theme.

This fix affects only Windows Look and Feel on Vista platform.
There is a system property to disable it - swing.disablevistaanimation.

Comments
EVALUATION The fix for this bug introduced regression: 6511744 [JRadioButton in JTree is not painted in correct state on Vista]
10-01-2007

EVALUATION Vista might have transition for every PART on every STATE change. This fix implements this for swing. It tracks the current state for every (component, PART) and triggers animation if needed. Where animation is alpha-blending of the skin in new STATE over the skin in the old STATE with the alpha value which depends on the time animation has started and on transition duration which we take from the theme. In case Vista API this fix depends upon is changed we provide system property to disable vista animation: swing.disablevistaanimation
15-08-2006

EVALUATION https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=86852&SiteID=4 === GetThemeTransitionDuration() will give you the animation duration BeginBufferedAnimation() will do everything for you, all you have to do is paint the to and from states on WM_PAINT. The animations are all linear. ===
07-06-2006