swingx
  1. swingx
  2. SWINGX-525

Incorrect animation rendering in JXCollapsiblePane

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.9.1
    • Component/s: Misc Component
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      525

      Description

      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.

        Issue Links

          Activity

          Hide
          grishata added a comment -

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

          Show
          grishata added a comment - Created an attachment (id=122) patch for JXCollapsiblePane.java
          Hide
          kleopatra added a comment -


          not sure: who's babe is this?

          Show
          kleopatra added a comment - not sure: who's babe is this?
          Hide
          grishata added a comment -

          What do you mean?

          Show
          grishata added a comment - What do you mean?
          Hide
          kleopatra added a comment -

          Grishata,

          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.

          Jeanette

          Show
          kleopatra added a comment - Grishata, 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. Jeanette
          Hide
          Karl Schaefer added a comment -

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

          Show
          Karl Schaefer added a comment - Change the type to PATCH. This is a patch that will resolve several issues regarding the JXCollapsiblePane. I will investigate it further.
          Hide
          Karl Schaefer added a comment -

          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.

          Show
          Karl Schaefer added a comment - 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.
          Hide
          Karl Schaefer added a comment -

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

          Show
          Karl Schaefer added a comment - Did not apply patch directly. Used it as a direction to refactor the code.

            People

            • Assignee:
              Karl Schaefer
              Reporter:
              grishata
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: