/** removes the group from controlP5. */ public void remove() { _myControlWindow.removeMouseOverFor(this); if (_myParent != null) { _myParent.remove(this); } if (cp5 != null) { cp5.remove(this); } for (int i = controllers.size() - 1; i >= 0; i--) { controllers.get(i).remove(); } controllers.clear(); controllers.clearDrawable(); controllers = new ControllerList(); if (this instanceof Tab) { _myControlWindow.removeTab((Tab) this); } }