Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.swing
Class ExceptionPane  view ExceptionPane download ExceptionPane.java

java.lang.Object
  extended bycom.eireneh.swing.ExceptionPane

public class ExceptionPane
extends java.lang.Object

A simple way of reporting problems to the user This is probably too simplistic for a full-on public app, but it is probably simple enough for us to use here.
Distribution Licence:
Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.


Nested Class Summary
(package private) static class ExceptionPane.CustomCaptureListener
          The ExceptionPane instance that we add to the Log
 
Field Summary
private static ExceptionPane.CustomCaptureListener li
          The listener that pops up the ExceptionPanes
 
Constructor Summary
ExceptionPane()
           
 
Method Summary
static boolean getHelpDeskListener()
          You must call setJoinHelpDesk() in order to start displaying Exceptions sent to the Log, and in order to properly close this class you must call it again (with false).
static void setHelpDeskListener(boolean joined)
          You must call setJoinHelpDesk() in order to start displaying Exceptions sent to the Log, and in order to properly close this class you must call it again (with false).
static void showExceptionDialog(java.awt.Component comp, java.lang.Throwable ex)
          Show an option pane containing the exception
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

li

private static ExceptionPane.CustomCaptureListener li
The listener that pops up the ExceptionPanes

Constructor Detail

ExceptionPane

public ExceptionPane()
Method Detail

showExceptionDialog

public static void showExceptionDialog(java.awt.Component comp,
                                       java.lang.Throwable ex)
Show an option pane containing the exception


setHelpDeskListener

public static void setHelpDeskListener(boolean joined)
You must call setJoinHelpDesk() in order to start displaying Exceptions sent to the Log, and in order to properly close this class you must call it again (with false).


getHelpDeskListener

public static boolean getHelpDeskListener()
You must call setJoinHelpDesk() in order to start displaying Exceptions sent to the Log, and in order to properly close this class you must call it again (with false).