public class ExceptionDialog
extends javax.swing.JDialog
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Modifier and Type | Method and Description |
|---|---|
static java.awt.Point |
centeredIn(java.awt.Dimension ownerDim,
java.awt.Dimension size)
Helper method to calculate a point that makes two windows have the same center point.
|
static java.awt.Point |
centeredIn(java.awt.Window owner,
java.awt.Dimension size)
Helper method to calculate a point that makes two windows have the same center point.
|
static void |
centeredInScreen(java.awt.Window window)
Centered in screen.
|
static void |
centerWithin(java.awt.Window newWindow,
java.awt.Window frame)
Helper method to mode newWindow to the center of frame window.
|
static java.awt.Dimension |
getScreenDimension(int scrID)
Gets the screen dimension.
|
static java.awt.Point |
relativePosition(java.awt.Component comp)
Helper method to calculate a point that is 20 pixels down right of the location of the component received as a parameter.
|
static void |
showMessage(java.awt.Component parent,
java.lang.Throwable exception,
java.lang.String title,
int icon)
Show message.
|
static void |
showMessage(java.lang.Throwable throwable)
This static method creates new instance of Exception Handler and
displays modal dialog box containing the message.
|
static void |
showMessage(java.lang.Throwable ex,
java.awt.Point p)
This static method creates new instance of Exception Handler and
displays modal dialog box containing the message.
|
static void |
showMessage(java.lang.Throwable ex,
java.awt.Point p,
int icon)
This static method creates new instance of Exception Handler and
displays modal dialog box containing the message.
|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static void showMessage(java.lang.Throwable throwable)
throwable - Exception to be handledpublic static void showMessage(java.lang.Throwable ex,
java.awt.Point p)
ex - Exception to be handledp - position of the new error window in the screenpublic static void showMessage(java.lang.Throwable ex,
java.awt.Point p,
int icon)
ex - Exception to be handledp - position of the new error window in the screenicon - the icon to the left of the error message. Use one of the JOptionPane.ERROR_MESSAGE, JOptionPane.INFORMATION_MESSAGE, etc, valuespublic static java.awt.Point relativePosition(java.awt.Component comp)
comp - Componentpublic static java.awt.Point centeredIn(java.awt.Window owner,
java.awt.Dimension size)
owner - parent windowsize - the size of the child windowpublic static void centerWithin(java.awt.Window newWindow,
java.awt.Window frame)
newWindow - window to be centeredframe - the parent window newWindow shall be centered within. Can be nullpublic static java.awt.Point centeredIn(java.awt.Dimension ownerDim,
java.awt.Dimension size)
ownerDim - the owner dimsize - the sizepublic static void centeredInScreen(java.awt.Window window)
window - the windowpublic static java.awt.Dimension getScreenDimension(int scrID)
scrID - the scr idpublic static void showMessage(java.awt.Component parent,
java.lang.Throwable exception,
java.lang.String title,
int icon)
parent - the parentexception - the exceptiontitle - the titleicon - the iconCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa