I have trouble with a component not being repainted. Let me explain the situation:
I have a main application that loads plugins as dynamic libraries. These plugins create a guy (a “Component”) and pass a pointer to it to the main application. The main application calls addAndMakeVisible at some point, to add these plugin-guis to its own gui.
Now, when I call repaint() inside the plugin-gui (code inside the dynamic library), it is not repainted until I call repaint() in the main application. My idea is, that repaint() relies on some static classes which are not shared between the library and the main application, but I can’t figure out how to solve this.
What can I do here?