Check box not updated

In my application I am using two tree view,one in a left frame and another in edit menu.My requirement is to update the second tree as per the first one.All details are attached as a picture.I am using two method called saveOpenStates() and loadOpenStates() which update only the open states in treeview.But I am unable to update the check state in second tree as per the first tree.So con you tell me the process in details or any particular method that fulfils my requirement.
Thanks in advance…

You can use treeA.getAllChecked to get list of all checked items in the tree, and later use
treeB.setCheck to check necessary items in target tree