📄 jpopupmenu.html
字号:
<TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE><BR> Gets the AccessibleContext associated with this JPopupMenu.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getComponent()">getComponent</A></B>()</CODE><BR> Returns this <code>JPopupMenu</code> component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getComponentAtIndex(int)">getComponentAtIndex</A></B>(int i)</CODE><BR> <B>Deprecated.</B> <I>replaced by <code>getComponent(int i)</code></I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getComponentIndex(java.awt.Component)">getComponentIndex</A></B>(<A HREF="../../java/awt/Component.html">Component</A> c)</CODE><BR> Returns the index of the specified component.</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><A HREF="../../javax/swing/JPopupMenu.html#getDefaultLightWeightPopupEnabled()">getDefaultLightWeightPopupEnabled</A></B>()</CODE><BR> Returns true if this is a light weight popup component, false otherwise.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getInvoker()">getInvoker</A></B>()</CODE><BR> Returns the component which is the 'invoker' of this popup menu.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getLabel()">getLabel</A></B>()</CODE><BR> Returns the popup menu's label</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Insets.html">Insets</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getMargin()">getMargin</A></B>()</CODE><BR> Returns the margin, in pixels, between the popup menu's border and its containees.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/SingleSelectionModel.html">SingleSelectionModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getSelectionModel()">getSelectionModel</A></B>()</CODE><BR> Returns the model object that handles single selections.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/MenuElement.html">MenuElement</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getSubElements()">getSubElements</A></B>()</CODE><BR> Returns an array of <code>MenuElement</code>s containing the submenu for this menu component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/plaf/PopupMenuUI.html">PopupMenuUI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getUI()">getUI</A></B>()</CODE><BR> Returns the look and feel (L&F) object that renders this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#getUIClassID()">getUIClassID</A></B>()</CODE><BR> Returns the name of the L&F class that renders this component.</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><A HREF="../../javax/swing/JPopupMenu.html#insert(javax.swing.Action, int)">insert</A></B>(<A HREF="../../javax/swing/Action.html">Action</A> a, int index)</CODE><BR> Inserts a menu item for the specified <code>Action</code> object at a given position.</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><A HREF="../../javax/swing/JPopupMenu.html#insert(java.awt.Component, int)">insert</A></B>(<A HREF="../../java/awt/Component.html">Component</A> component, int index)</CODE><BR> Inserts the specified component into the menu at a given position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#isBorderPainted()">isBorderPainted</A></B>()</CODE><BR> Checks whether the border should be painted.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#isLightWeightPopupEnabled()">isLightWeightPopupEnabled</A></B>()</CODE><BR> Returns true if light weight (all-Java) popups are in use, or false if heavy weight (native peer) popups are being used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#isPopupTrigger(java.awt.event.MouseEvent)">isPopupTrigger</A></B>(<A HREF="../../java/awt/event/MouseEvent.html">MouseEvent</A> e)</CODE><BR> Returns true if the <code>MouseEvent</code> is considered a popup trigger by the <code>JPopupMenu</code>'s currently installed UI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPopupMenu.html#isVisible()">isVisible</A></B>()</CODE><BR> Returns true if the popup menu is visible (currently being displayed).</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><A HREF="../../javax/swing/JPopupMenu.html#menuSelectionChanged(boolean)">menuSelectionChanged</A></B>(boolean isIncluded)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -