[SWINGX-525] Incorrect animation rendering in JXCollapsiblePane Created: 07/Jun/07  Updated: 28/Jan/11  Resolved: 05/May/09

Status: Resolved
Project: swingx
Component/s: Misc Component
Affects Version/s: 0.9.0
Fix Version/s: 0.9.1

Type: Task Priority: Major
Reporter: grishata Assignee: Karl Schaefer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All

Attachments: Text File JXCollapsiblePane.java.patch    
Issue Links:
blocks SWINGX-495 JXCollapsiblePane does not correctly ... Resolved
Issuezilla Id: 525


It looks like that due to optimizations in the paint(Graphics g) method, the
image used for the animations in JXCollapsiblePane is not entirely repainted
(not at all, sometimes), especially if there is more than one JXCollapsiblePane
in the application or if the JXCollapsiblePane is initially collapsed.

I attached a patch, which uses a JViewport instead of a BufferedImage. It works
for me, but it is not much tested and may need some adjustments.

Comment by grishata [ 07/Jun/07 ]

Created an attachment (id=122)
patch for JXCollapsiblePane.java

Comment by kleopatra [ 15/Jun/07 ]

not sure: who's babe is this?

Comment by grishata [ 29/Jun/07 ]

What do you mean?

Comment by kleopatra [ 29/Jun/07 ]


it was an internal question - I wanted to know who feels responsible for fixing
this (both Richard and Fred worked on it in the past). Sorry for confusing you.


Comment by Karl Schaefer [ 01/Nov/07 ]

Change the type to PATCH. This is a patch that will resolve several issues
regarding the JXCollapsiblePane. I will investigate it further.

Comment by Karl Schaefer [ 02/Nov/07 ]

I have begun looking at the patch. It performs as described. I am testing the
code and further removing bits made extraneous by the change.

Comment by Karl Schaefer [ 11/Nov/07 ]

Did not apply patch directly. Used it as a direction to refactor the code.

Generated at Wed Feb 22 19:57:55 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.