<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 05:57:37 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  KeyStroke
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/KeyStroke.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../javax/swing/JWindow.AccessibleJWindow.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../javax/swing/LookAndFeel.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="KeyStroke.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.swing</FONT>
<BR>
Class  KeyStroke</H2>
<PRE>
java.lang.Object
  |
  +--<B>javax.swing.KeyStroke</B>
</PRE>
<HR>
<DL>
<DT>public class <B>KeyStroke</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>

<P>
A KeyStroke instance represents a key being typed on the keyboard -- it
 contains both a char code for the key and a modifier (alt, shift, ctrl, 
 meta, or a combination). 
 <p>
 KeyStroke objects are used to define high-level (semantic) action events.
 Instead of trapping every keystroke and throwing away the ones you are
 not interested in, those keystrokes you care about automatically initiate
 actions on the components they are registered with. 
 <p>
 KeyStroke objects handle both character-code generating keystrokes you 
 would trap with a KeyTyped event handler and key-code generating keystrokes
 (like Enter or F1) that you would trap with a KeyPressed event handler.
 <p>
 KeyStroke objects are immutable and unique.
 <p>
 All KeyStroke objects are cached. To get one, use <code>getKeyStroke</code>.
 <p>
 <strong>Warning:</strong>
 Serialized objects of this class will not be compatible with 
 future Swing releases.  The current serialization support is appropriate
 for short term storage or RMI between applications running the same
 version of Swing.  A future release of Swing will provide support for
 long term persistence.
<P>
<DL>
<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)"><CODE>JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)</CODE></A>, 
<A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(char)"><CODE>getKeyStroke(char)</CODE></A>, <A HREF="../../serialized-form.html#javax.swing.KeyStroke">Serialized Form</A></DL>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->


<!-- ======== CONSTRUCTOR SUMMARY ======== -->


<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;anObject)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this object is identical to the specified object.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;char</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#getKeyChar()">getKeyChar</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the character defined by this KeyStroke object.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#getKeyCode()">getKeyCode</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the numeric keycode defined by this KeyStroke object.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(char)">getKeyStroke</A></B>(char&nbsp;keyChar)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a shared instance of a key stroke that is
 activated when the key is pressed (i.e.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(char, boolean)">getKeyStroke</A></B>(char&nbsp;keyChar,
             boolean&nbsp;onKeyRelease)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use getKeyStroke(char)</I></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(int, int)">getKeyStroke</A></B>(int&nbsp;keyCode,
             int&nbsp;modifiers)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a shared instance of a key stroke given a char code and a set
 of modifiers -- the key is activated when it is pressed.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(int, int, boolean)">getKeyStroke</A></B>(int&nbsp;keyCode,
             int&nbsp;modifiers,
             boolean&nbsp;onKeyRelease)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a shared instance of a key stroke given a numeric keycode and a set
 of modifiers, specifying whether the key is activated when it is pressed
 or released.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)">getKeyStroke</A></B>(java.lang.String&nbsp;representation)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a shared instance of a key stroke matching a string
 representation.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#getKeyStrokeForEvent(java.awt.event.KeyEvent)">getKeyStrokeForEvent</A></B>(java.awt.event.KeyEvent&nbsp;anEvent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a keystroke from an event.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#getModifiers()">getModifiers</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the modifier keys defined by this KeyStroke object.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#hashCode()">hashCode</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a numeric value for this object that is likely to be
 reasonably unique, so it can be used as the index value in a
 Hashtable.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#isOnKeyRelease()">isOnKeyRelease</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this keystroke is active on key release.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/KeyStroke.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string that displays and identifies this
 object's properties.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>clone, 
finalize, 
getClass, 
notify, 
notifyAll, 
wait, 
wait, 
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->


<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getKeyStroke(char)"><!-- --></A><H3>
getKeyStroke</H3>
<PRE>
public static <A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A> <B>getKeyStroke</B>(char&nbsp;keyChar)</PRE>
<DL>
<DD>Return a shared instance of a key stroke that is
 activated when the key is pressed (i.e. a KeyStroke
 for the KeyEvent.KEY_TYPED event).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>keyChar</CODE> - the character value for a keyboard key<DT><B>Returns:</B><DD>a KeyStroke object for that key</DL>
</DD>
</DL>
<HR>

<A NAME="getKeyStroke(char, boolean)"><!-- --></A><H3>
getKeyStroke</H3>
<PRE>
public static <A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A> <B>getKeyStroke</B>(char&nbsp;keyChar,
                                     boolean&nbsp;onKeyRelease)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use getKeyStroke(char)</I><DD>Return a shared instance of a key stroke, specifying
 whether the key is considered to be activated when it is 
 pressed or when it is released.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>keyChar</CODE> - the character value for a keyboard key<DD><CODE>onKeyRelease</CODE> - a boolean value. When true, specifies that
        the key is active when it is released.<DT><B>Returns:</B><DD>a KeyStroke object for that key</DL>
</DD>
</DL>
<HR>

<A NAME="getKeyStroke(int, int, boolean)"><!-- --></A><H3>
getKeyStroke</H3>
<PRE>
public static <A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A> <B>getKeyStroke</B>(int&nbsp;keyCode,
                                     int&nbsp;modifiers,
                                     boolean&nbsp;onKeyRelease)</PRE>
<DL>
<DD>Return a shared instance of a key stroke given a numeric keycode and a set
 of modifiers, specifying whether the key is activated when it is pressed
 or released.
 <p>
 The "virtual key" constants defined in java.awt.event.KeyEvent can be 
 used to specify the key code. For example:<ul>
 <li>java.awt.event.KeyEvent.VK_ENTER 
 <li>java.awt.event.KeyEvent.VK_TAB
 <li>java.awt.event.KeyEvent.VK_SPACE
 </ul>
 The modifiers consist of any combination of:<ul>
 <li>java.awt.Event.SHIFT_MASK (1)
 <li>java.awt.Event.CTRL_MASK (2)
 <li>java.awt.Event.META_MASK (4)
 <li>java.awt.Event.ALT_MASK (8)
 </ul>
 Since these numbers are all different powers of two, any combination of
 them is an integer in which each bit represents a different
 modifier key.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>keyCode</CODE> - an int specifying the numeric code for a keyboard key<DD><CODE>modifiers</CODE> - an int specifying any combination of the key modifiers.<DD><CODE>onKeyRelease</CODE> - a boolean value. When true, specifies that
        the key is active when it is released.<DT><B>Returns:</B><DD>a KeyStroke object for that key<DT><B>See Also: </B><DD><CODE>KeyEvent</CODE>, 
<CODE>Event</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getKeyStroke(int, int)"><!-- --></A><H3>
getKeyStroke</H3>
<PRE>
public static <A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A> <B>getKeyStroke</B>(int&nbsp;keyCode,
                                     int&nbsp;modifiers)</PRE>
<DL>
<DD>Return a shared instance of a key stroke given a char code and a set
 of modifiers -- the key is activated when it is pressed.
 <p>
 <p>
 The "virtual key" constants defined in java.awt.event.KeyEvent can be 
 used to specify the key code. For example:<ul>
 <li>java.awt.event.KeyEvent.VK_ENTER 
 <li>java.awt.event.KeyEvent.VK_TAB
 <li>java.awt.event.KeyEvent.VK_SPACE
 </ul>
 The modifiers consist of any combination of:<ul>
 <li>java.awt.Event.SHIFT_MASK (1)
 <li>java.awt.Event.CTRL_MASK (2)
 <li>java.awt.Event.META_MASK (4)
 <li>java.awt.Event.ALT_MASK (8)
 </ul>
 Since these numbers are all different powers of two, any combination of
 them is an integer in which each bit represents a different
 modifier key.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>keyCode</CODE> - an int specifying the numeric code for a keyboard key<DD><CODE>modifiers</CODE> - an int specifying any combination of the key modifiers.<DT><B>Returns:</B><DD>a KeyStroke object for that key<DT><B>See Also: </B><DD><CODE>KeyEvent</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getKeyStrokeForEvent(java.awt.event.KeyEvent)"><!-- --></A><H3>
getKeyStrokeForEvent</H3>
<PRE>
public static <A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A> <B>getKeyStrokeForEvent</B>(java.awt.event.KeyEvent&nbsp;anEvent)</PRE>
<DL>
<DD>Return a keystroke from an event.
 <p>
 This method obtains the keyChar from a KeyTyped event,
 and the keyCode from a KeyPressed or KeyReleased event,
 so you the type of event doesn't matter.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>anEvent</CODE> - the KeyEvent to obtain the KeyStroke from<DT><B>Returns:</B><DD>the KeyStroke that precipitated the event</DL>
</DD>
</DL>
<HR>

<A NAME="getKeyStroke(java.lang.String)"><!-- --></A><H3>
getKeyStroke</H3>
<PRE>
public static <A HREF="../../javax/swing/KeyStroke.html">KeyStroke</A> <B>getKeyStroke</B>(java.lang.String&nbsp;representation)</PRE>
<DL>
<DD>Return a shared instance of a key stroke matching a string
 representation.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>representation</CODE> - a String specifying a KeyStroke<DT><B>Returns:</B><DD>a KeyStroke object matching the specification.</DL>
</DD>
</DL>
<HR>

<A NAME="getKeyChar()"><!-- --></A><H3>
getKeyChar</H3>
<PRE>
public char <B>getKeyChar</B>()</PRE>
<DL>
<DD>Returns the character defined by this KeyStroke object.<DD><DL>
<DT><B>Returns:</B><DD>a char value<DT><B>See Also: </B><DD><A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(char)"><CODE>getKeyStroke(char)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getKeyCode()"><!-- --></A><H3>
getKeyCode</H3>
<PRE>
public int <B>getKeyCode</B>()</PRE>
<DL>
<DD>Returns the numeric keycode defined by this KeyStroke object.<DD><DL>
<DT><B>Returns:</B><DD>an int containing the keycode value<DT><B>See Also: </B><DD><A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(int, int)"><CODE>getKeyStroke(int,int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getModifiers()"><!-- --></A><H3>
getModifiers</H3>
<PRE>
public int <B>getModifiers</B>()</PRE>
<DL>
<DD>Returns the modifier keys defined by this KeyStroke object.<DD><DL>
<DT><B>Returns:</B><DD>an int containing the modifiers<DT><B>See Also: </B><DD><A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(int, int)"><CODE>getKeyStroke(int,int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isOnKeyRelease()"><!-- --></A><H3>
isOnKeyRelease</H3>
<PRE>
public boolean <B>isOnKeyRelease</B>()</PRE>
<DL>
<DD>Returns true if this keystroke is active on key release.<DD><DL>
<DT><B>Returns:</B><DD>true if active on key release, false if active on key press<DT><B>See Also: </B><DD><A HREF="../../javax/swing/KeyStroke.html#getKeyStroke(int, int, boolean)"><CODE>getKeyStroke(int,int,boolean)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD>Returns a numeric value for this object that is likely to be
 reasonably unique, so it can be used as the index value in a
 Hashtable.<DD><DL>
<DT><B>Returns:</B><DD>an int that "represents" this object<DT><B>Overrides:</B><DD>hashCode in class java.lang.Object<DT><B>See Also: </B><DD><CODE>Hashtable</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;anObject)</PRE>
<DL>
<DD>Returns true if this object is identical to the specified object.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>anObject</CODE> - the Object to compare this object to<DT><B>Returns:</B><DD>true if the objects are identical<DT><B>Overrides:</B><DD>equals in class java.lang.Object</DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Returns a string that displays and identifies this
 object's properties.<DD><DL>
<DT><B>Returns:</B><DD>a String representation of this object<DT><B>Overrides:</B><DD>toString in class java.lang.Object</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/KeyStroke.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../javax/swing/JWindow.AccessibleJWindow.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../javax/swing/LookAndFeel.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="KeyStroke.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.<br>Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>
