Problem setting focus for a newly added child element in TreeViewer
b gorle
Greenhorn
Joined: Mar 24, 2010
Posts: 3
posted
0
Hi
My treeviewer contains both parent and child elements. When I am trying to add a new child element for a particular parent element, some how the focus is getting lost. My code goes like this
quick quiz for you:
which is easier to read, in the way you're used to seeing it
1)
class FirstProgram
{
public static void main(String[] args)
{
System.out.println("Hello World");
}
}
or
2)
or
3)
b gorle
Greenhorn
Joined: Mar 24, 2010
Posts: 3
posted
0
Sorry for that!! Please check it now. Also if you are unable to understand below code please suggest what is the general procedure to set Focus for a newly added child element in a treeview. When I add an element, the focus should be on the newly added element, but for some reason i am unable to set the focus and it is lost ...