I’m curious to know how others deal with UI component reuses while using JUCE? I’ve built an interface that has groups of JUCE widgets that are repeated multiple times. I did this by creating Component classes and adding the individual JUCE widgets to these Component classes (where they get added and sized), then adding that Component class to the main PluginEditor class. Some of these Components have other Components nested within them. Everything is working nicely, I can add these Component classes to the Plugin Editor and all my nested JUCE widgets within them all show up. This seems like a good situation for finding a way to turn groups of JUCE items into objects, but it causes the issue of having to provide accessor functions to get to these widgets that reside internally in these Component classes, or make the widgets public, so I can just access them directly with the dot operator.
So I’m curious to hear how others deal with DRYing up repeating UI stuff.