Class MessageBox
java.lang.Object
MessageBox
- All Implemented Interfaces:
ActionListener,KeyListener,WindowListener,EventListener
Class MessageBox is used in the interactive window for z390
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Handle action performed eventprivate voidCancel the messagevoidkeyPressed(KeyEvent event) Handle key pressed eventvoidkeyReleased(KeyEvent event) Handle key released eventvoidHandle key typed eventvoidmessageBox(String title, String message) Popup message box with title and message and exit when ok button clickedvoidHandle window activationvoidHandle window closedvoidHandle window closingvoidHandle window deactivationvoidHandle window de-iconificationvoidHandle window iconificationvoidHandle window opened
-
Field Details
-
frame
Frame framevariable
-
-
Constructor Details
-
MessageBox
public MessageBox()Dummy constructor - no initialization needed
-
-
Method Details
-
messageBox
Popup message box with title and message and exit when ok button clicked- Parameters:
title- title for the popupmessage- message content
-
cancel_message
private void cancel_message()Cancel the message -
windowActivated
Handle window activation- Specified by:
windowActivatedin interfaceWindowListener- Parameters:
e- event
-
windowDeactivated
Handle window deactivation- Specified by:
windowDeactivatedin interfaceWindowListener- Parameters:
e- event
-
windowClosed
Handle window closed- Specified by:
windowClosedin interfaceWindowListener- Parameters:
e- event
-
windowClosing
Handle window closing- Specified by:
windowClosingin interfaceWindowListener- Parameters:
e- event
-
windowIconified
Handle window iconification- Specified by:
windowIconifiedin interfaceWindowListener- Parameters:
e- event
-
windowDeiconified
Handle window de-iconification- Specified by:
windowDeiconifiedin interfaceWindowListener- Parameters:
e- event
-
windowOpened
Handle window opened- Specified by:
windowOpenedin interfaceWindowListener- Parameters:
e- event
-
actionPerformed
Handle action performed event- Specified by:
actionPerformedin interfaceActionListener- Parameters:
event- action event data
-
keyPressed
Handle key pressed event- Specified by:
keyPressedin interfaceKeyListener- Parameters:
event- keypress data
-
keyTyped
Handle key typed event- Specified by:
keyTypedin interfaceKeyListener- Parameters:
event- key typed data
-
keyReleased
Handle key released event- Specified by:
keyReleasedin interfaceKeyListener- Parameters:
event- key released data
-