private JPanel createQQPlotDialog(Node selected){
  String dialogTitle="Q-Q Plots";
  JPanel panel=new JPanel();
  panel.setLayout(new BorderLayout());
  DataSet dataSet=(DataSet)dataEditor.getSelectedDataModel();
  QQPlot qqPlot=new QQPlot(dataSet,selected);
  QQPlotEditorPanel editorPanel=new QQPlotEditorPanel(qqPlot,dataSet);
  QQPlotDisplayPanel display=new QQPlotDisplayPanel(qqPlot);
  editorPanel.addPropertyChangeListener(new QQPlotListener(display));
  JMenuBar bar=new JMenuBar();
  JMenu menu=new JMenu("File");
  menu.add(new JMenuItem(new SaveComponentImage(display,"Save Q-Q Plot")));
  bar.add(menu);
  Box box=Box.createHorizontalBox();
  box.add(display);
  box.add(Box.createHorizontalStrut(3));
  box.add(editorPanel);
  box.add(Box.createHorizontalStrut(5));
  box.add(Box.createHorizontalGlue());
  Box vBox=Box.createVerticalBox();
  vBox.add(Box.createVerticalStrut(15));
  vBox.add(box);
  vBox.add(Box.createVerticalStrut(5));
  panel.add(bar,BorderLayout.NORTH);
  panel.add(vBox,BorderLayout.CENTER);
  return panel;
}

private JPanel createQQPlotDialog ( Node selected ) { String dialogTitle = "Q-Q Plots" ; JPanel panel = new JPanel ( ) ; panel . setLayout ( new BorderLayout ( ) ) ; DataSet dataSet = ( DataSet ) dataEditor . getSelectedDataModel ( ) ; QQPlot qqPlot = new QQPlot ( dataSet , selected ) ; QQPlotEditorPanel editorPanel = new QQPlotEditorPanel ( qqPlot , dataSet ) ; QQPlotDisplayPanel display = new QQPlotDisplayPanel ( qqPlot ) ; editorPanel . addPropertyChangeListener ( new QQPlotListener ( display ) ) ; JMenuBar bar = new JMenuBar ( ) ; JMenu menu = new JMenu ( "File" ) ; menu . add ( new JMenuItem ( new SaveComponentImage ( display , "Save Q-Q Plot" ) ) ) ; bar . add ( menu ) ; Box box = Box . createHorizontalBox ( ) ; box . add ( display ) ; box . add ( Box . createHorizontalStrut ( 3 ) ) ; box . add ( editorPanel ) ; box . add ( Box . createHorizontalStrut ( 5 ) ) ; box . add ( Box . createHorizontalGlue ( ) ) ; Box vBox = Box . createVerticalBox ( ) ; vBox . add ( Box . createVerticalStrut ( 15 ) ) ; vBox . add ( box ) ; vBox . add ( Box . createVerticalStrut ( 5 ) ) ; panel . add ( bar , BorderLayout . NORTH ) ; panel . add ( vBox , BorderLayout . CENTER ) ; return panel ; }
creates a dialog that is showing the histogram for the given node ( if null one is selected for you )
