private JScrollPane createDetailPanel(String errorMessage){
  JTextArea textArea=new JTextArea(errorMessage);
  textArea.setLineWrap(true);
  textArea.setEditable(false);
  JScrollPane detailPane=new ExtendedJScrollPane(textArea);
  detailPane.setPreferredSize(new Dimension(getWidth(),200));
  return detailPane;
}

private JScrollPane createDetailPanel ( String errorMessage ) { JTextArea textArea = new JTextArea ( errorMessage ) ; textArea . setLineWrap ( true ) ; textArea . setEditable ( false ) ; JScrollPane detailPane = new ExtendedJScrollPane ( textArea ) ; detailPane . setPreferredSize ( new Dimension ( getWidth ( ) , 200 ) ) ; return detailPane ; }
creates a panel for the error details and attaches the error message to it , but doesn ' t add the panel to the dialog .
