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 JFramegetParentFrame(JComponent component)static voidshowInfo(Component parentComponent, String longMessage, String title, int messageType, IBrolImage icon)static voidshowInfo(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 theFramein which the dialog is displayed; ifnull, or if theparentComponenthas noFrame, a defaultFrameis usedlongMessage- the message to display into a scrollable zonetitle- the title string for the dialogmessageType- the type of message to be displayed:icon- theIBrolImageto 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 theFramein which the dialog is displayed; ifnull, or if theparentComponenthas noFrame, a defaultFrameis 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- theIBrolImageto display in the dialog that helps the user identify the kind of message that is being displayed
-