I have a class that creates a bunch of boxes. I would like to the boxes to communicate to eachother somehow. So if one box resizes, there would be an event dispatched and all the other boxes would shift over or resize, or change colour, or whatever.
How do I get my boxes to listen to eachother? They are all identical. Is there a certain design pattern that I need to be following?
Any help is appreciated