private JPanel createOverviewPanel() {
    final DiffMetadata metadata = diff.getMetadata();

    // Outer panel with title and frame
    final JPanel overviewBorderPanel = new JPanel(new BorderLayout(0, 0));
    overviewBorderPanel.setBorder(
        new CompoundBorder(new TitledBorder("Overview"), new LineBorder(Color.GRAY)));

    // Panel that contains the actual chart panels
    final JPanel chartsPanel = new JPanel(new GridLayout(1, 1, 0, 0));
    overviewBorderPanel.add(chartsPanel, BorderLayout.CENTER);

    chartsPanel.add(new FunctionMatchesPie3dPanel(metadata));
    chartsPanel.add(new SimilarityBarChart2dPanel(metadata));

    // Panel with filename and date
    final JPanel metadataPanel = new JPanel(new GridLayout(2, 1, 2, 2));
    metadataPanel.setBorder(BorderFactory.createLineBorder(Color.GRAY));
    metadataPanel.setBackground(Color.WHITE);

    metadataPanel.add(
        GuiUtils.createHorizontalNamedLabelPanel(
            "Diff Path", TEXTFIELD_LABEL_WIDTH, diffPath, TEXTFIELD_HEIGHT));
    metadataPanel.add(
        GuiUtils.createHorizontalNamedLabelPanel(
            "File Date", TEXTFIELD_LABEL_WIDTH, creationDate, TEXTFIELD_HEIGHT));

    final JPanel outerMetadataPanel = new JPanel(new BorderLayout());
    outerMetadataPanel.setBorder(new TitledBorder("Diff Info"));
    outerMetadataPanel.add(metadataPanel, BorderLayout.CENTER);

    final JPanel panel = new JPanel(new BorderLayout());
    panel.add(overviewBorderPanel, BorderLayout.CENTER);
    panel.add(outerMetadataPanel, BorderLayout.SOUTH);

    return panel;
  }
Panel containing the contextual view when a diff is selected in the tree view.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/tabpanels/projecttabpanel/treenodepanels/DiffTreeNodeContextPanel.java