Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.9.0
    • Component/s: swing, swingx
    • Labels:
      None
    • Environment:

      Windows XP SP3, Java 1.6.0_20

      Description

      EventList<X>.removeAll() seems to cause problems later which somehow trigger a NullPointerException in BarcodeNode.

        Activity

        Hide
        jason_s added a comment -

        (similar to GLAZEDLISTS-473?)

        Show
        jason_s added a comment - (similar to GLAZEDLISTS-473 ?)
        Hide
        jason_s added a comment -

        GlazedListNullPointerException1 depends on JXTable (I'm using swingx-core-1.6.2.jar)

        Test data is a list of U.S. states.

        Run it with the checkbox unchecked, delete a few items, page-down to the bottom, then page up. No error.

        Now repeat with the checkbox checked. Boom, you get a NullPointerException.

        Show
        jason_s added a comment - GlazedListNullPointerException1 depends on JXTable (I'm using swingx-core-1.6.2.jar) Test data is a list of U.S. states. Run it with the checkbox unchecked, delete a few items, page-down to the bottom, then page up. No error. Now repeat with the checkbox checked. Boom, you get a NullPointerException.
        Hide
        brands added a comment -

        When using GlazedLists with SwingX 1.6.x you have to take care that GlazedLists' sorting doesn't interfere with SwingX sorting.
        You should disable sorting on JXTable and set the RowSorter to null.
        This was discussed on the mailing list before:
        http://glazedlists.1045722.n5.nabble.com/latest-GL-vs-SwingX-1-6-1-td3420140.html

        I've updated the documentation here:
        https://sites.google.com/site/glazedlists/documentation/swingx-16

        So, if you add the following after the creation of your JXTable the example should work:

        table.setSortable(false);
        table.getTableHeader().setDefaultRenderer(new JTableHeader().getDefaultRenderer());
        table.setAutoCreateRowSorter(false);
        table.setRowSorter(null);

        Please confirm if that solves your problem.
        Thanks,
        Holger

        Show
        brands added a comment - When using GlazedLists with SwingX 1.6.x you have to take care that GlazedLists' sorting doesn't interfere with SwingX sorting. You should disable sorting on JXTable and set the RowSorter to null. This was discussed on the mailing list before: http://glazedlists.1045722.n5.nabble.com/latest-GL-vs-SwingX-1-6-1-td3420140.html I've updated the documentation here: https://sites.google.com/site/glazedlists/documentation/swingx-16 So, if you add the following after the creation of your JXTable the example should work: table.setSortable(false); table.getTableHeader().setDefaultRenderer(new JTableHeader().getDefaultRenderer()); table.setAutoCreateRowSorter(false); table.setRowSorter(null); Please confirm if that solves your problem. Thanks, Holger
        Hide
        jason_s added a comment -

        As you suggested, it looks like these lines fix it:

        table.setRowSorter(null);
        table.setAutoCreateRowSorter(false);
        

        thanks!

        Show
        jason_s added a comment - As you suggested, it looks like these lines fix it: table.setRowSorter( null ); table.setAutoCreateRowSorter( false ); thanks!
        Hide
        brands added a comment -

        resolving issue...

        Show
        brands added a comment - resolving issue...

          People

          • Assignee:
            brands
            Reporter:
            jason_s
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: