private JPanel createNormalityTestDialog(Node selected){
  DataSet dataSet=(DataSet)dataEditor.getSelectedDataModel();
  QQPlot qqPlot=new QQPlot(dataSet,selected);
  NormalityTestEditorPanel editorPanel=new NormalityTestEditorPanel(qqPlot,dataSet);
  JTextArea display=new JTextArea(NormalityTests.runNormalityTests(dataSet,(ContinuousVariable)qqPlot.getSelectedVariable()),20,65);
  display.setEditable(false);
  editorPanel.addPropertyChangeListener(new NormalityTestListener(display));
  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));
  JPanel panel=new JPanel();
  panel.setLayout(new BorderLayout());
  panel.add(vBox,BorderLayout.CENTER);
  return panel;
}

private JPanel createNormalityTestDialog ( Node selected ) { DataSet dataSet = ( DataSet ) dataEditor . getSelectedDataModel ( ) ; QQPlot qqPlot = new QQPlot ( dataSet , selected ) ; NormalityTestEditorPanel editorPanel = new NormalityTestEditorPanel ( qqPlot , dataSet ) ; JTextArea display = new JTextArea ( NormalityTests . runNormalityTests ( dataSet , ( ContinuousVariable ) qqPlot . getSelectedVariable ( ) ) , 20 , 65 ) ; display . setEditable ( false ) ; editorPanel . addPropertyChangeListener ( new NormalityTestListener ( display ) ) ; 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 ) ) ; JPanel panel = new JPanel ( ) ; panel . setLayout ( new BorderLayout ( ) ) ; 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 )
