//remove all the old settings first
mSettingsWrapper.removeAll();
//get the settings panel
ComposerSettingsPanel settingsPanel = lbl.getSettingsPanel();
//try to do all this here
try
{
//make the settings label visible
mSettingsLbl.setVisible(true);
//add this new panel
mSettingsWrapper.add(settingsPanel);
//give this panel a size
settingsPanel.setSize(500, 300);
//if we don't have any components, get rid
//of the settings label, so the user does
//not think they made a mistake
if(settingsPanel.getComponentCount() == 0)
{
mSettingsLbl.setVisible(false);
}
}
catch(Exception ex)