⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 keystroke.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B>JComponent.</B><B><A HREF="../../../javax/swing/JComponent.html#getConditionForKeyStroke(javax.swing.KeyStroke)">getConditionForKeyStroke</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;aKeyStroke)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the condition that determines whether a registered action occurs in response to the specified keystroke.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/event/ActionListener.html">ActionListener</A></CODE></FONT></TD><TD><CODE><B>JComponent.</B><B><A HREF="../../../javax/swing/JComponent.html#getActionForKeyStroke(javax.swing.KeyStroke)">getActionForKeyStroke</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;aKeyStroke)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the object that will perform the action registered for a given keystroke.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B>JComponent.</B><B><A HREF="../../../javax/swing/JComponent.html#processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean)">processKeyBinding</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;ks,                  <A HREF="../../../java/awt/event/KeyEvent.html">KeyEvent</A>&nbsp;e,                  int&nbsp;condition,                  boolean&nbsp;pressed)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoked to process the key bindings for <code>ks</code> as the result of the KeyEvent <code>e</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>JMenuItem.</B><B><A HREF="../../../javax/swing/JMenuItem.html#setAccelerator(javax.swing.KeyStroke)">setAccelerator</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;keyStroke)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the key combination which invokes the Menu Item's action listeners without navigating the menu hierarchy.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>JMenu.</B><B><A HREF="../../../javax/swing/JMenu.html#setAccelerator(javax.swing.KeyStroke)">setAccelerator</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;keyStroke)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>setAccelerator</code> is not defined for <code>JMenu</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>InputMap.</B><B><A HREF="../../../javax/swing/InputMap.html#put(javax.swing.KeyStroke, java.lang.Object)">put</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;keyStroke,    <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;actionMapKey)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a binding for <code>keyStroke</code> to <code>actionMapKey</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B>InputMap.</B><B><A HREF="../../../javax/swing/InputMap.html#get(javax.swing.KeyStroke)">get</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;keyStroke)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the binding for <code>keyStroke</code>, messaging the  parent <code>InputMap</code> if the binding is not locally defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>InputMap.</B><B><A HREF="../../../javax/swing/InputMap.html#remove(javax.swing.KeyStroke)">remove</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the binding for <code>key</code> from this <code>InputMap</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>ComponentInputMap.</B><B><A HREF="../../../javax/swing/ComponentInputMap.html#put(javax.swing.KeyStroke, java.lang.Object)">put</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;keyStroke,    <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;actionMapKey)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a binding for <code>keyStroke</code> to <code>actionMapKey</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>ComponentInputMap.</B><B><A HREF="../../../javax/swing/ComponentInputMap.html#remove(javax.swing.KeyStroke)">remove</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the binding for <code>key</code> from this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B>SwingUtilities.</B><B><A HREF="../../../javax/swing/SwingUtilities.html#notifyAction(javax.swing.Action, javax.swing.KeyStroke, java.awt.event.KeyEvent, java.lang.Object, int)">notifyAction</A></B>(<A HREF="../../../javax/swing/Action.html">Action</A>&nbsp;action,             <A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;ks,             <A HREF="../../../java/awt/event/KeyEvent.html">KeyEvent</A>&nbsp;event,             <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;sender,             int&nbsp;modifiers)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invokes <code>actionPerformed</code> on <code>action</code> if <code>action</code> is enabled (and non null).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B>JTable.</B><B><A HREF="../../../javax/swing/JTable.html#processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean)">processKeyBinding</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;ks,                  <A HREF="../../../java/awt/event/KeyEvent.html">KeyEvent</A>&nbsp;e,                  int&nbsp;condition,                  boolean&nbsp;pressed)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B>JMenuBar.</B><B><A HREF="../../../javax/swing/JMenuBar.html#processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean)">processKeyBinding</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>&nbsp;ks,                  <A HREF="../../../java/awt/event/KeyEvent.html">KeyEvent</A>&nbsp;e,                  int&nbsp;condition,                  boolean&nbsp;pressed)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subclassed to check all the child menus.</TD></TR></TABLE>&nbsp;<P><A NAME="javax.swing.plaf.basic"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A> in <A HREF="../../../javax/swing/plaf/basic/package-summary.html">javax.swing.plaf.basic</A></FONT></TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Fields in <A HREF="../../../javax/swing/plaf/basic/package-summary.html">javax.swing.plaf.basic</A> declared as <A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicTabbedPaneUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTabbedPaneUI.html#upKey">upKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicTabbedPaneUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTabbedPaneUI.html#downKey">downKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicTabbedPaneUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTabbedPaneUI.html#leftKey">leftKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicTabbedPaneUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicTabbedPaneUI.html#rightKey">rightKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicToolBarUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicToolBarUI.html#upKey">upKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicToolBarUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicToolBarUI.html#downKey">downKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicToolBarUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicToolBarUI.html#leftKey">leftKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicToolBarUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicToolBarUI.html#rightKey">rightKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicInternalFrameUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicInternalFrameUI.html#openMenuKey">openMenuKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicDesktopPaneUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicDesktopPaneUI.html#minimizeKey">minimizeKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of JDK version 1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A></CODE></FONT></TD><TD><CODE><B>BasicDesktopPaneUI.</B><B><A HREF="../../../javax/swing/plaf/basic/BasicDesktopPaneUI.html#maximizeKey">maximizeKey</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of JDK version 1.3.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -