private void startItemEdit(WargearTreeUserObjectContainer container) { this.saveData(); if (this.currentContainer != null) this.currentContainer.unHighlightPath(); WargearItemPanel panel = new WargearItemPanel( this.armylistArmy, container.getItemGroup(), container.getItem(), this); this.currentItemPanel = panel; this.currentContainer = container; this.editorPane.removeAll(); this.editorPane.add(this.currentItemPanel); this.editorPane.updateUI(); this.currentContainer.highlightPath(); this.wargearTree.updateUI(); }