Class SCMainGUI

java.lang.Object
  |
  +--java.awt.event.WindowAdapter
        |
        +--SCMainGUI
All Implemented Interfaces:
java.util.EventListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener

public class SCMainGUI
extends java.awt.event.WindowAdapter

Primary GUI of the SimpComp Simulator.


Constructor Summary
SCMainGUI(SimpComp scomp)
          Constructor, places all GUI components in appropriate Panels.
 
Method Summary
static java.lang.String drawInputGUI(java.lang.String message)
          Displays a static prompt for a two characters input.
 void windowClosing(java.awt.event.WindowEvent e)
          Overwrites windowClosing() in WindowAdapter.
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCMainGUI

public SCMainGUI(SimpComp scomp)
Constructor, places all GUI components in appropriate Panels.

Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Overwrites windowClosing() in WindowAdapter.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter

drawInputGUI

public static java.lang.String drawInputGUI(java.lang.String message)
Displays a static prompt for a two characters input. Action is triggered by "Enter", no other option is displayed or allowed.

Parameters:
message - displayed
Returns:
string entered