Auto adjusting list

One could also possibly take and utilize a stack data structure rather than just sitcking it within one String.

1 Like

If you want to use a GUI library, ControlP5 also has things like an “Accordian” control. I think that is more of a reveal toolbar style, rather than a popup stack, but control groups in either ControlP5 or G4P could be used to implement the display part of your stack as an alternative to creating your own from scratch – particularly if you want them to be clickable or updatable.