A Window object is a top-level window with no borders and no
menubar. It could be used to implement a pop-up menu.
The default layout for a window is BorderLayout.
A Window object blocks input to other application
windows when it is shown.
Windows are capable of generating the following window events:
WindowOpened, WindowClosed.
Gets the warning string that is displayed with this window.
If this window is insecure, the warning string is displayed
somewhere in the visible area of the window. A window is
insecure if there is a security manager, and the security
manager's checkTopLevelWindow method returns
false when this window is passed to it as an
argument.
If the window is secure, then getWarningString
returns null. If the window is insecure, this
methods checks for the system property
awt.appletWarning
and returns the string value of that property.
Gets the Locale object that is associated
with this window, if the locale has been set.
If no locale has been set, then the default locale
is returned.
Processes events on this window. If the event is an WindowEvent,
it invokes the processWindowEvent method, else it invokes its
superclass's processEvent.
Processes window events occurring on this window by
dispatching them to any registered WindowListener objects.
NOTE: This method will not be called unless window events
are enabled for this component; this happens when one of the
following occurs:
a) A WindowListener object is registered via addWindowListener()
b) Window events are enabled via enableEvents()