<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.awt.EventQueue
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.Event.html#_top_">Previous</a>  <a href="java.awt.FileDialog.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.EventQueue
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.awt.EventQueue
</pre>
<hr>
<dl>
  <dt> public class <b>EventQueue</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
EventQueue is a platform-independent class that queues events, both
 from the underlying peer classes and from trusted application classes.
 There is only one EventQueue for the system.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#EventQueue()"><b>EventQueue</b></a>()
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getNextEvent()"><b>getNextEvent</b></a>()
  <dd>  Remove an event from the queue and return it.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#peekEvent()"><b>peekEvent</b></a>()
  <dd>  Return the first event without removing it.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#peekEvent(int)"><b>peekEvent</b></a>(int)
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#postEvent(java.awt.AWTEvent)"><b>postEvent</b></a>(AWTEvent)
  <dd>  Post a 1.1-style event to the EventQueue.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="EventQueue"></a>
<a name="EventQueue()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>EventQueue</b>
<pre>
 public EventQueue()
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="postEvent(java.awt.AWTEvent)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="postEvent"><b>postEvent</b></a>
<pre>
 public synchronized void postEvent(<a href="java.awt.AWTEvent.html#_top_">AWTEvent</a> theEvent)
</pre>
<dl>
  <dd> Post a 1.1-style event to the EventQueue.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> theEvent - an instance of java.awt.AWTEvent, or a
 subclass of it.
  </dl></dd>
</dl>
<a name="getNextEvent()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getNextEvent"><b>getNextEvent</b></a>
<pre>
 public synchronized <a href="java.awt.AWTEvent.html#_top_">AWTEvent</a> getNextEvent() throws <a href="java.lang.InterruptedException.html#_top_">InterruptedException</a>
</pre>
<dl>
  <dd> Remove an event from the queue and return it.  This method will
 block until an event has been posted by another thread.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the next AWTEvent
    <dt> <b>Throws:</b> <a href="java.lang.InterruptedException.html#_top_">InterruptedException</a>
    <dd> if another thread has interrupted this thread.
  </dl></dd>
</dl>
<a name="peekEvent()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="peekEvent"><b>peekEvent</b></a>
<pre>
 public synchronized <a href="java.awt.AWTEvent.html#_top_">AWTEvent</a> peekEvent()
</pre>
<dl>
  <dd> Return the first event without removing it.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the first event, which is either an instance of java.awt.Event
 or java.awt.AWTEvent.
  </dl></dd>
</dl>
<a name="peekEvent(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="peekEvent"><b>peekEvent</b></a>
<pre>
 public synchronized <a href="java.awt.AWTEvent.html#_top_">AWTEvent</a> peekEvent(int id)
</pre>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.Event.html#_top_">Previous</a>  <a href="java.awt.FileDialog.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
