swingx
  1. swingx
  2. SWINGX-423

All: Components must be Serializable

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.0
    • Fix Version/s: None
    • Component/s: Misc Component
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      423

      Description

      as Serializable is implemented by Component, all JX<..> must be as well. Most
      don't, added test methods to expose - probably incomplete, please add what's
      missing! As of now, only a handful don't bark: Hyperlink, Panel, RadioGroup,
      RootPane, TableHeader , TitledSeparator

      SerializeTest/-Issues are most simple, and only test if the component
      instantiated with the parameterless constructor doesn't bark when going through
      a serialize/deserialize cycle. Even if passing these, a fully customized
      component still might fail - this is the case f.i. in TableHeader which fails as
      soon as it is attached to a table.

      On first look the culprits often are

      • LayoutManager
      • listeners
      • ui-delegates (they should be de-installed during serialization?)
      • images
      • EventHandler (via BoundAction)

      core swing must have run across similar issues - and most probably has developed
      some guidelines to follow. Would be great if we could lay our hands on those!

        Issue Links

          Activity

          Hide
          kleopatra added a comment -

          A related forum thread:

          http://forums.java.net/jive/thread.jspa?threadID=20638&tstart=0

          A related issue 349 (special case for JXTable) - which triggered this

          Show
          kleopatra added a comment - A related forum thread: http://forums.java.net/jive/thread.jspa?threadID=20638&tstart=0 A related issue 349 (special case for JXTable) - which triggered this
          Hide
          Karl Schaefer added a comment -

          Matching 349 as post 1.0.

          Show
          Karl Schaefer added a comment - Matching 349 as post 1.0.
          Hide
          Karl Schaefer added a comment -

          SWINGX-423: Initial support for serialization issues.

          swingx-beaninfo/src/test/java/org/jdesktop/beans/AbstractBeanInfoTest.java

          Committed revision 3953.

          Show
          Karl Schaefer added a comment - SWINGX-423 : Initial support for serialization issues. swingx-beaninfo/src/test/java/org/jdesktop/beans/AbstractBeanInfoTest.java Committed revision 3953.

            People

            • Assignee:
              kleopatra
              Reporter:
              kleopatra
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: