Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void create(int index){
- for ( int x: f.getTree().getRoot().getChildren()) {
- addChild(0 , x);
- }
- }
- public void addChild(int parent, int child ){
- String p = f.getTree().get(parent).getFileDescriptor().getFileName();
- String c = f.getTree().get(child).getFileDescriptor().getFileName();
- fileTree.addNewNode(p,c);
- for (int x: f.getTree().get(child).getChildren()) {
- addChild(child, x);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement