private void updateGraphs(List<GraphID> selectedIds) {
    List<GraphID> existingDiagrams = (List) sequenceDiagram.getSubDiagramsNames();
    for (GraphID id : selectedIds) {
      showSubDiagram(id);
      existingDiagrams.remove(id);
    }
    for (GraphID id : existingDiagrams) {
      hideSubDiagram(id);
    }

    sequenceDiagram.resizeMe(sequenceDiagram.getWidth(), sequenceDiagram.getHeight());
    sequencePanel.revalidate();
    sequencePanel.repaint();
    // sequenceDiagram.revalidate();
    // sequenceDiagram.repaint();
  }
Create the GUI and show it. For thread safety, this method should be invoked from the
event-dispatching thread.
geode-core/src/test/java/org/apache/geode/sequence/GemfireSequenceDisplay.java