question: private void createEditPanel ( ) { editPanel = new JPanel ( ) ; add ( editPanel , BorderLayout . CENTER ) ; CardLayout cardlayout = new CardLayout ( ) ; editPanel . setLayout ( cardlayout ) ; if ( colourRampMap != null ) { for ( ColourRampPanelInterface data : colourRampMap . keySet ( ) ) { data . setParent ( this ) ; String key = data . getTitle ( ) ; editPanel . add ( data . getPanel ( ) , key ) ; } } }
target:  Creates the edit panel.