/** * Method loads a PlayBook and displays its members to the screen * * @param book The PlayBook to be loaded in */ protected void loadPlayBook(PlayBookEditor editor) throws IOException { this.editor = editor; ComponentLibrary myCompLib = editor.getComponentLibrary(); // We setup the various display units for the play book components treeView = new JTree(editor.getPlayBook()); stratView = new JList(myCompLib.strategies); formView = new JList(myCompLib.formations); roleView = new JList(myCompLib.roles); subRoleView = new JList(myCompLib.subRoles); // Set default display to tree treeScroller.getViewport().setView(treeView); }