This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206486

Summary: Sorted table is not adjusted when a table cell change it's value.
Product: platform Reporter: Martin Entlicher <mentlicher>
Component: Outline&TreeTableAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal CC: klr8, tonanbarbarian
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Martin Entlicher 2011-12-16 19:21:31 UTC
When an Outline view is sorted by some column(s), the row order is not adjusted when the cells change their values.

This can be reproduced e.g. in debugger's Watch view.
To reproduce, use following class:

public class LazyVarSortTest {
    
    public static void main(String[] args) {
        System.out.println("Begin");
    }
    
    private static String get(String str, int waitTime) {
        try {
            Thread.currentThread().sleep(waitTime);
        } catch (InterruptedException ex) {
            return null;
        }
        return str;
    }
}

Add breakpoint to the line with System.out.println.
Define following watches:
get("a", 2000)
get("g", 2500)
get("f", 2000)
get("c", 4000)
get("z", 5000)
get("b", 7000)

Sort the "Value" column and start debug.
The watches are loading one by one, but the order does not change. The "Value" column ends up unsorted even though the arrow marks it as sorted.
Comment 1 Martin Entlicher 2012-04-03 15:21:35 UTC
*** Bug 210581 has been marked as a duplicate of this bug. ***
Comment 2 Ondrej Vrabec 2014-10-22 13:37:30 UTC
*** Bug 245324 has been marked as a duplicate of this bug. ***