📄 keystroke.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> aKeyStroke)</CODE><BR> 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> <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> aKeyStroke)</CODE><BR> 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 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> ks, <A HREF="../../../java/awt/event/KeyEvent.html">KeyEvent</A> e, int condition, boolean pressed)</CODE><BR> 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> 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> keyStroke)</CODE><BR> 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> 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> keyStroke)</CODE><BR> <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> 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> keyStroke, <A HREF="../../../java/lang/Object.html">Object</A> actionMapKey)</CODE><BR> 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> <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> keyStroke)</CODE><BR> 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> 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> key)</CODE><BR> 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> 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> keyStroke, <A HREF="../../../java/lang/Object.html">Object</A> actionMapKey)</CODE><BR> 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> 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> key)</CODE><BR> 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 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> action, <A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A> ks, <A HREF="../../../java/awt/event/KeyEvent.html">KeyEvent</A> event, <A HREF="../../../java/lang/Object.html">Object</A> sender, int modifiers)</CODE><BR> 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 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> ks, <A HREF="../../../java/awt/event/KeyEvent.html">KeyEvent</A> e, int condition, boolean pressed)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected 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> ks, <A HREF="../../../java/awt/event/KeyEvent.html">KeyEvent</A> e, int condition, boolean pressed)</CODE><BR> Subclassed to check all the child menus.</TD></TR></TABLE> <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> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 <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> <B>Deprecated.</B> <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 + -