@Override
    public void actionPerformed(ActionEvent event) {
      JOptionPane.showMessageDialog(innerFrame, "This is a dialog");
    }
Defining the dialog's owner JFrame is highly recommended.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/CodeDisplay/MinimalCodeDisplayHarness.java