Hallo Leute!
Obwohl ich mit AWT arbeite nutze ich zur Zeit noch das JOptionPane als MsgBox... Dies wollte ich aber ändern, indem ich eine eigene Klasse für das PopUp anfertige... Jetzt hab ich allerdings den folgenden Code gefunden und wollte diesen mal ausprobieren! Leider hab ich keine Ahnung was ich für manche Parameter einsetzen muss... Kann mir jemand helfen?
Gruß manuche
Obwohl ich mit AWT arbeite nutze ich zur Zeit noch das JOptionPane als MsgBox... Dies wollte ich aber ändern, indem ich eine eigene Klasse für das PopUp anfertige... Jetzt hab ich allerdings den folgenden Code gefunden und wollte diesen mal ausprobieren! Leider hab ich keine Ahnung was ich für manche Parameter einsetzen muss... Kann mir jemand helfen?
Code:
PopupDialog(Shell parent, int shellStyle,
boolean takeFocusOnOpen, boolean persistBounds,
boolean showDialogMenu, boolean showPersistAction,
String titleText, String infoText) ;
. . .
Parameters:
parent - The parent shell.
shellStyle - The shell style.
takeFocusOnOpen - A boolean indicating whether focus should be taken by this popup when it opens.
persistBounds - A boolean indicating whether the bounds should be persisted upon close of the dialog. The bounds can only be persisted if the dialog settings for persisting the bounds are also specified. If a menu action will be provided that allows the user to control this feature, then the last known value of the user's setting will be used instead of this flag.
showDialogMenu - A boolean indicating whether a menu for moving and resizing the popup should be provided.
showPersistAction - A boolean indicating whether an action allowing the user to control the persisting of the dialog bounds should be shown in the dialog menu. This parameter has no effect if showDialogMenu is false.
titleText - Text to be shown in an upper title area, or null if there is no title.
infoText - Text to be shown in a lower info area, or null if there is no info area.
Gruß manuche