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 - Sorted table is not adjusted when a table cell change it's value.
Summary: Sorted table is not adjusted when a table cell change it's value.
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 210581 245324 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-16 19:21 UTC by Martin Entlicher
Modified: 2014-10-22 13:37 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***