I have a grin app in which I programmatically activate an empty segment to clear the screen. It takes a bit for the empty segment to activate. I have called getCurrentSegment, waiting for the empty segment to be current. When it says the empty segment is now current,I call repaint in the component where the show was playing out to clear the screen. The features of the previous segment will sometimes still be present when the repaint occurs and the screen won't clear. Other times the repaint never occurs but I think this latter issue is in the underlying jvm.
I am not sure if this is the proper way to clear the screen. Is there a way to ensure a segment is fully active and that it is safe to repaint? Is there another way to clear the screen of features?