com.evanmclean.evlib.swing
Class Swing

java.lang.Object
  extended by com.evanmclean.evlib.swing.Swing

public final class Swing
extends Object

Handy utilities for swing.

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

Method Summary
static void displayException(Component parent, Throwable ex, String msg, String title)
          Displays a message dialog box with details of the exception object, including the stack trace in a scrollbox.
static void setSystemLookAndFeel()
          Sets swing to use the system look and feel for the operating system (if available), ignoring any exceptions if they occur.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

displayException

public static void displayException(Component parent,
                                    Throwable ex,
                                    String msg,
                                    String title)
Displays a message dialog box with details of the exception object, including the stack trace in a scrollbox.

Parameters:
parent - The parent component of the dialog box.
ex - The exception object.
msg - An optional message (null to not use).
title - The title for the dialog box.

setSystemLookAndFeel

public static void setSystemLookAndFeel()
Sets swing to use the system look and feel for the operating system (if available), ignoring any exceptions if they occur.