public final boolean exceptionShow(String message,Exception exc){
  if (exc == null)   return false;
  String showMsg=exceptionExpand(message,exc);
  JTextArea msgArea=new JTextArea(showMsg,10,75);
  msgArea.setLineWrap(true);
  JScrollPane scrollPane=new JScrollPane(msgArea);
  if (SwingUtilities.isEventDispatchThread())   JOptionPane.showMessageDialog(logFrame,scrollPane,"Copiate questo errore",JOptionPane.ERROR_MESSAGE);
 else   SwingUtilities.invokeLater(new SwingShowMessage(scrollPane,JOptionPane.ERROR_MESSAGE));
  return true;
}

public final boolean exceptionShow ( String message , Exception exc ) { if ( exc == null ) return false ; String showMsg = exceptionExpand ( message , exc ) ; JTextArea msgArea = new JTextArea ( showMsg , 10 , 75 ) ; msgArea . setLineWrap ( true ) ; JScrollPane scrollPane = new JScrollPane ( msgArea ) ; if ( SwingUtilities . isEventDispatchThread ( ) ) JOptionPane . showMessageDialog ( logFrame , scrollPane , "Copiate questo errore" , JOptionPane . ERROR_MESSAGE ) ; else SwingUtilities . invokeLater ( new SwingShowMessage ( scrollPane , JOptionPane . ERROR_MESSAGE ) ) ; return true ; }
this will show an exception in terms of popup window . the user will be really aware about it ! it returns true if there was an exception to show , false othervise . note that if there is no exception then nothing will be done .
