Getting off the ground

[code]ScorecererPluginAudioProcessorEditor::ScorecererPluginAudioProcessorEditor (ScorecererPluginAudioProcessor* ownerFilter)
: AudioProcessorEditor (ownerFilter)
{
addAndMakeVisible (contentComponent = new AUEditorComponent());
setSize (400, 300); // do this after adding the child, because it’ll call resized(), which will position the child correctly
}

ScorecererPluginAudioProcessorEditor::~ScorecererPluginAudioProcessorEditor()
{
delete contentComponent; // yes, you’re responsible for deleting it, but it’d be better to use a ScopedPointer and avoid this line
}

void ScorecererPluginAudioProcessorEditor::paint (Graphics& g)
{
}

void ScorecererPluginAudioProcessorEditor::resized()
{
contentComponent->setBounds (getLocalBounds()); // makes sure the child always fills the whole parent area, as that’s presumably what you want.
}
[/code]