Package be.gaudry.swing.utils
Class SwingHelper
java.lang.Object
be.gaudry.swing.utils.SwingHelper
- Since:
- 1.0 Jul 15, 2008, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
-
Method Summary
Modifier and TypeMethodDescriptionstatic JFrame
getParentFrame(JComponent component)
static void
showInfo(Component parentComponent, String longMessage, String title, int messageType, IBrolImage icon)
static void
showInfo(Component parentComponent, String shortMessage, String longMessage, String title, int messageType, IBrolImage icon)
-
Method Details
-
getParentFrame
- Parameters:
component
-- Returns:
- top parent frame if exists, new frame if not exists (Applet)
-
showInfo
public static void showInfo(Component parentComponent, String longMessage, String title, int messageType, IBrolImage icon)- Parameters:
parentComponent
- determines theFrame
in which the dialog is displayed; ifnull
, or if theparentComponent
has noFrame
, a defaultFrame
is usedlongMessage
- the message to display into a scrollable zonetitle
- the title string for the dialogmessageType
- the type of message to be displayed:icon
- theIBrolImage
to display in the dialog that helps the user identify the kind of message that is being displayed
-
showInfo
public static void showInfo(Component parentComponent, String shortMessage, String longMessage, String title, int messageType, IBrolImage icon)- Parameters:
parentComponent
- determines theFrame
in which the dialog is displayed; ifnull
, or if theparentComponent
has noFrame
, a defaultFrame
is usedshortMessage
- the message to display without scrolllongMessage
- the message to display into a scrollable zonetitle
- the title string for the dialogmessageType
- the type of message to be displayed:icon
- theIBrolImage
to display in the dialog that helps the user identify the kind of message that is being displayed
-