# Newbie help with GUI

**URL:** <https://forum.juce.com/t/newbie-help-with-gui/10739>\
**Category:** Audio Plugins\
**Created:** [July 8, 2013, 12:06am UTC](https://forum.juce.com/t/newbie-help-with-gui/10739 "2013-07-08T00:06:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfonso-santimone](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/alfonso-santimone/32/6_2.png) [@alfonso-santimone](https://forum.juce.com/u/alfonso-santimone)\
**Post date:** [July 8, 2013, 12:06am UTC](https://forum.juce.com/t/newbie-help-with-gui/10739/1 "2013-07-08T00:06:20Z")

</div>

Hi!  
i’m trying to modify the “hello world” demo plugin and put a simple slider on the GUI using the GUI Editor in Introjucer.  
I can add a new component in the files tree but i can’t understand how to insert the stuff in the PluginEditor.cpp.  
I don’t understand why the GUI Editor does not work on the PluginEditor.cpp but only if i add a New GUI Component.  
But how to integrate the New GUI Component in the PluginEditor.cpp?  
sorry for the newbieness 🙂  
thanks and all the best

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 8, 2013, 7:57am UTC](https://forum.juce.com/t/newbie-help-with-gui/10739/2 "2013-07-08T07:57:54Z")

</div>

The GUI editor can’t just edit any old piece of code that you throw at it, it can only work with files that it generates and manages itself.

What I would do would be to create a GUI component and then add that class to your editor comp as a child. You could create a GUI component and modify its parent class and constructors so that it’s derived from AudioProcessorEditor, but it’s probably cleaner to keep them separate.

---

<div class="post-metadata">

**Author:** ![alfonso-santimone](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/alfonso-santimone/32/6_2.png) [@alfonso-santimone](https://forum.juce.com/u/alfonso-santimone)\
**Post date:** [July 8, 2013, 8:52am UTC](https://forum.juce.com/t/newbie-help-with-gui/10739/3 "2013-07-08T08:52:42Z")

</div>

[quote=“jules”]The GUI editor can’t just edit any old piece of code that you throw at it, it can only work with files that it generates and manages itself.

What I would do would be to create a GUI component and then add that class to your editor comp as a child. You could create a GUI component and modify its parent class and constructors so that it’s derived from AudioProcessorEditor, but it’s probably cleaner to keep them separate.[/quote]

thanks jules!  
a little example? 🙂
