<!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.PopupMenu
</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.Polygon.html#_top_">Previous</a>  <a href="java.awt.PrintJob.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.PopupMenu
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.awt.MenuComponent.html#_top_">java.awt.MenuComponent</a>
           |
           +----<a href="java.awt.MenuItem.html#_top_">java.awt.MenuItem</a>
                   |
                   +----<a href="java.awt.Menu.html#_top_">java.awt.Menu</a>
                           |
                           +----java.awt.PopupMenu
</pre>
<hr>
<dl>
  <dt> public class <b>PopupMenu</b>
  <dt> extends <a href="java.awt.Menu.html#_top_">Menu</a>
</dl>
A class that implements a menu which can be dynamically popped up
 at a specified position within a component.
<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="#PopupMenu()"><b>PopupMenu</b></a>()
  <dd>  Creates a new popup menu.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#PopupMenu(java.lang.String)"><b>PopupMenu</b></a>(String)
  <dd>  Creates a new popup menu with the specified name.
</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="#addNotify()"><b>addNotify</b></a>()
  <dd>  Creates the popup menu's peer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#show(java.awt.Component, int, int)"><b>show</b></a>(Component, int, int)
  <dd>  Shows the popup menu at the x, y position relative to an origin component.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="PopupMenu"></a>
<a name="PopupMenu()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>PopupMenu</b>
<pre>
 public PopupMenu()
</pre>
<dl>
  <dd> Creates a new popup menu.
<p>
</dl>
<a name="PopupMenu(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>PopupMenu</b>
<pre>
 public PopupMenu(<a href="java.lang.String.html#_top_">String</a> label)
</pre>
<dl>
  <dd> Creates a new popup menu with the specified name.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> label - the title string for the popup menu
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="addNotify()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addNotify"><b>addNotify</b></a>
<pre>
 public void addNotify()
</pre>
<dl>
  <dd> Creates the popup menu's peer.  The peer allows us to change the 
 appearance of the popup menu without changing any of the popup menu's 
 functionality.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Menu.html#addNotify()">addNotify</a> in class <a href="java.awt.Menu.html#_top_">Menu</a>
  </dl></dd>
</dl>
<a name="show(java.awt.Component, int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="show"><b>show</b></a>
<pre>
 public void show(<a href="java.awt.Component.html#_top_">Component</a> origin,
                  int x,
                  int y)
</pre>
<dl>
  <dd> Shows the popup menu at the x, y position relative to an origin component.
 The origin component must be contained within the component hierarchy 
 of the popup menu's parent.  Both the origin and the parent must be 
 showing on the screen for this method to be valid.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> origin - the component which defines the coordinate space
    <dd> x - the x coordinate position to popup the menu
    <dd> y - the y coordinate position to popup the menu
  </dl></dd>
</dl>
<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.Polygon.html#_top_">Previous</a>  <a href="java.awt.PrintJob.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
