United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6435825 Win Vista: add animation support for swing components
JDK-6435825 : Win Vista: add animation support for swing components

Details
Type:
Bug
Submit Date:
2006-06-07
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2006-08-23
Component:
client-libs
OS:
windows_vista
Sub-Component:
javax.swing
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Relates:
Relates:
Relates:

Sub Tasks

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

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.
===
                                     
2006-06-07
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
                                     
2006-08-15
EVALUATION

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



Hardware and Software, Engineered to Work Together