Package org.jdesktop.swingx.plaf
Class ErrorPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
org.jdesktop.swingx.plaf.ErrorPaneUI
- Direct Known Subclasses:
BasicErrorPaneUI
The ComponentUI for a JXErrorPane.
- Author:
- rbair
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Dimension
Calculates default prefered size for JXErrorPane on given platform/LAF.abstract JDialog
getErrorDialog
(Component owner) Creates new ErrorPane wrapped in the dialog window centered at provided owner component.abstract JFrame
getErrorFrame
(Component owner) Creates new ErrorPane wrapped in the frame window centered at provided owner component.abstract JInternalFrame
getErrorInternalFrame
(Component owner) Creates new ErrorPane wrapped in the internal frame window centered at provided owner component.Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
Constructor Details
-
ErrorPaneUI
public ErrorPaneUI()
-
-
Method Details
-
getErrorFrame
Creates new ErrorPane wrapped in the frame window centered at provided owner component.- Parameters:
owner
- component to center created error frame at.- Returns:
- New ErrorPane instance wrapped in JFrame.
-
getErrorDialog
Creates new ErrorPane wrapped in the dialog window centered at provided owner component.- Parameters:
owner
- component to center created error dialog at.- Returns:
- New ErrorPane instance wrapped in JDialog.
-
getErrorInternalFrame
Creates new ErrorPane wrapped in the internal frame window centered at provided owner component.- Parameters:
owner
- component to center created error frame at.- Returns:
- New ErrorPane instance wrapped in JInternalFrame.
-
calculatePreferredSize
Calculates default prefered size for JXErrorPane on given platform/LAF.- Returns:
- Preferred size.
-