<!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.MenuShortcut
</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.MenuItem.html#_top_">Previous</a>  <a href="java.awt.Panel.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.MenuShortcut
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.awt.MenuShortcut
</pre>
<hr>
<dl>
  <dt> public class <b>MenuShortcut</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.io.Serializable.html#_top_">Serializable</a>
</dl>
A class which represents a keyboard accelerator for a MenuItem.
<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="#MenuShortcut(int)"><b>MenuShortcut</b></a>(int)
  <dd>  Constructs a new MenuShortcut for the specified key.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#MenuShortcut(int, boolean)"><b>MenuShortcut</b></a>(int, boolean)
  <dd>  Constructs a new MenuShortcut for the specified key.
</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="#equals(java.awt.MenuShortcut)"><b>equals</b></a>(MenuShortcut)
  <dd>  Returns whether this MenuShortcut is the same as another:
 equality is defined to mean that both MenuShortcuts use the same key
 and both either use or don't use the SHIFT key.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getKey()"><b>getKey</b></a>()
  <dd>  Return the raw keycode of this MenuShortcut.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#paramString()"><b>paramString</b></a>()
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Returns an internationalized description of the MenuShortcut.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#usesShiftModifier()"><b>usesShiftModifier</b></a>()
  <dd>  Return whether this MenuShortcut must be invoked using the SHIFT key.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="MenuShortcut"></a>
<a name="MenuShortcut(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>MenuShortcut</b>
<pre>
 public MenuShortcut(int key)
</pre>
<dl>
  <dd> Constructs a new MenuShortcut for the specified key.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> key - the raw keycode for this MenuShortcut, as would be returned
 in the keyCode field of a KeyEvent if this key were pressed.
  </dl></dd>
</dl>
<a name="MenuShortcut(int, boolean)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>MenuShortcut</b>
<pre>
 public MenuShortcut(int key,
                     boolean useShiftModifier)
</pre>
<dl>
  <dd> Constructs a new MenuShortcut for the specified key.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> key - the raw keycode for this MenuShortcut, as would be returned
 in the keyCode field of a KeyEvent if this key were pressed.
    <dd> useShiftModifier - indicates whether this MenuShortcut is invoked
 with the SHIFT key down.
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getKey()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getKey"><b>getKey</b></a>
<pre>
 public int getKey()
</pre>
<dl>
  <dd> Return the raw keycode of this MenuShortcut.
<p>
</dl>
<a name="usesShiftModifier()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="usesShiftModifier"><b>usesShiftModifier</b></a>
<pre>
 public boolean usesShiftModifier()
</pre>
<dl>
  <dd> Return whether this MenuShortcut must be invoked using the SHIFT key.
<p>
</dl>
<a name="equals(java.awt.MenuShortcut)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="equals"><b>equals</b></a>
<pre>
 public boolean equals(<a href="#_top_">MenuShortcut</a> s)
</pre>
<dl>
  <dd> Returns whether this MenuShortcut is the same as another:
 equality is defined to mean that both MenuShortcuts use the same key
 and both either use or don't use the SHIFT key.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the MenuShortcut to compare with this.
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Returns an internationalized description of the MenuShortcut.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="paramString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="paramString"><b>paramString</b></a>
<pre>
 protected <a href="java.lang.String.html#_top_">String</a> paramString()
</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.MenuItem.html#_top_">Previous</a>  <a href="java.awt.Panel.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
