EVALUATION
Unfortunately I do not see how we can support animation for JTable, JTree and JList.
I suggest to disable it for these components.
----
--- XPStyle.java Wed Jan 10 17:13:32 2007
***************
*** 571,581 ****
* the image to be stretched or tiled
* @param state which state to paint
*/
void paintSkin(Graphics g, int dx, int dy, int dw, int dh, State state) {
if (ThemeReader.isGetThemeTransitionDurationDefined()
! && component instanceof JComponent ) {
AnimationController.paintSkin((JComponent) component, this,
g, dx, dy, dw, dh, state);
} else {
paintSkinRaw(g, dx, dy, dw, dh, state);
}
--- 571,583 ----
* the image to be stretched or tiled
* @param state which state to paint
*/
void paintSkin(Graphics g, int dx, int dy, int dw, int dh, State state) {
if (ThemeReader.isGetThemeTransitionDurationDefined()
! && component instanceof JComponent
! && SwingUtilities.getAncestorOfClass(CellRendererPane.class,
! component) == null) {
AnimationController.paintSkin((JComponent) component, this,
g, dx, dy, dw, dh, state);
} else {
paintSkinRaw(g, dx, dy, dw, dh, state);
}
----
Do not do animation for any component which belongs to CellRendererPane. That solves it for JTree, JTable and JList
|