private void createMenu() {
    JMenuBar menuBar = new JMenuBar();

    JMenu sequenceMenu = new JMenu("Sequence");
    sequenceMenu.setMnemonic(KeyEvent.VK_S);
    sequenceMenu.getAccessibleContext()
        .setAccessibleDescription("The only menu in this program that has menu items");
    menuBar.add(sequenceMenu);
    JMenuItem selectGraphs = new JMenuItem("Choose Graphs", KeyEvent.VK_G);
    selectGraphs.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_G, ActionEvent.ALT_MASK));
    selectGraphs.getAccessibleContext().setAccessibleDescription("Select what graphs to display");
    selectGraphs.setActionCommand("selectgraphs");
    selectGraphs.addActionListener(e -> showGraphSelector());

    sequenceMenu.add(selectGraphs);
    frame.setJMenuBar(menuBar);
  }
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