/** * Method for getting a Panel by index reference * * @param index The index of the object * @return The object with the given index */ public GPropertiesPanel getPanel(int index) { return (GPropertiesPanel) objects.get(index); }
/** * Method for removing a Panel by index reference * * @param index The index of the object to remove */ public void removePanel(int index) { pane.remove((GPropertiesPanel) objects.get(index)); objects.remove(index); }