multex
Class Swing

java.lang.Object
  |
  +--multex.Swing

public class Swing
extends java.lang.Object

Services for reporting onto Swing dialogs the messages for any exception with dynamic or static or no internationalization. The exception can be

Author:
Michael Lange + Christoph Knabe, Berlin. Derived from class Awt. Copyright 1999-2003

Method Summary
static void report(java.awt.Component io_ownerHook, java.lang.Throwable i_throwable)
          Reports i_throwable into a Swing dialog with static internationalization.
static void report(java.awt.Component io_ownerHook, java.lang.Throwable i_throwable, java.util.ResourceBundle i_resourceBundle)
          Reports i_throwable into a Swing dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

report

public static void report(java.awt.Component io_ownerHook,
                          java.lang.Throwable i_throwable)
Reports i_throwable into a Swing dialog with static internationalization. For details see Awt.report(Component, Throwable, ResourceBundle).


report

public static void report(java.awt.Component io_ownerHook,
                          java.lang.Throwable i_throwable,
                          java.util.ResourceBundle i_resourceBundle)
Reports i_throwable into a Swing dialog. For a detail description see the corresponding method of class Awt: Awt.report(Component, Throwable, ResourceBundle).

In an application this method should not be called directly from a GUI class, but the author of each GUI class should set up a method e.g.

             private void _report(Throwable e){Swing.report(this,e,null);}
             
, which will be called from each catch-clause in the event listeners and adds the actual GUI class as the owner of the message dialog.