Q:

for cycle not works allright

I call addNotify() method in class that I posted here.  The problem is, that when I call addNotify() as it is in the code, setKeys(objs) do nothing.  Nothing appears in my explorer of running app. 
But when I call addNotify()without loop(for int....), and add only one item to ArrayList, it shows that one item correctly. 
Does anybody know where can be problem?  See the cede
class ProjectsNode extends Children. Keys{
private ArrayList objs = new ArrayList();

public ProjectsNode() {

}

    @Override
protected Node[] createNodes(Object o) {
    MainProject obj = (MainProject) o;
    AbstractNode result = new AbstractNode (new DiagramsNode(), Lookups.singleton(obj));
    result.setDisplayName (obj.getName());
    return new Node[] { result };
}

@Override
protected void addNotify() {
    //this loop causes nothing appears in my explorer. 
    //but when I replace this loop by single line "objs.add(new MainProject("project1000"));", it shows that one item in explorer
    for (int i=0;i==10;i++){
        objs.add(new MainProject("project1000"));
    }
    setKeys (objs);
}

}

A:

Look at this loop:
for (int i=0;i==10;i++)

That's going to start with i = 0, and keep going while i == 10.  I think you meant:
for (int i = 0; i < 10; i++)

(Extra whitespace added just for clarity.)