📄 jcombobox.html
字号:
<BR> Returns the currently selected item.</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><A HREF="../../javax/swing/JComboBox.html#getSelectedObjects()">getSelectedObjects</A></B>()</CODE><BR> Returns an array containing the selected item.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/plaf/ComboBoxUI.html">ComboBoxUI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#getUI()">getUI</A></B>()</CODE><BR> Returns the 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/JComboBox.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/JComboBox.html#hidePopup()">hidePopup</A></B>()</CODE><BR> Causes the combo box to close its popup window.</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/JComboBox.html#insertItemAt(java.lang.Object, int)">insertItemAt</A></B>(<A HREF="../../java/lang/Object.html">Object</A> anObject, int index)</CODE><BR> Inserts an item into the item list at a given index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#installAncestorListener()">installAncestorListener</A></B>()</CODE><BR> </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/JComboBox.html#intervalAdded(javax.swing.event.ListDataEvent)">intervalAdded</A></B>(<A HREF="../../javax/swing/event/ListDataEvent.html">ListDataEvent</A> e)</CODE><BR> Invoked items have been added to the internal data model.</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/JComboBox.html#intervalRemoved(javax.swing.event.ListDataEvent)">intervalRemoved</A></B>(<A HREF="../../javax/swing/event/ListDataEvent.html">ListDataEvent</A> e)</CODE><BR> Invoked when values have been removed from the data model.</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/JComboBox.html#isEditable()">isEditable</A></B>()</CODE><BR> Returns true if the <code>JComboBox</code> is editable.</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/JComboBox.html#isFocusTraversable()">isFocusTraversable</A></B>()</CODE><BR> Returns true if the component can receive the focus.</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/JComboBox.html#isLightWeightPopupEnabled()">isLightWeightPopupEnabled</A></B>()</CODE><BR> Returns true if lightweight (all-Java) popups are in use, or false if heavyweight (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/JComboBox.html#isPopupVisible()">isPopupVisible</A></B>()</CODE><BR> Determines the visibility of the popup.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#paramString()">paramString</A></B>()</CODE><BR> Returns a string representation of this <code>JComboBox</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><A HREF="../../javax/swing/JComboBox.html#processKeyEvent(java.awt.event.KeyEvent)">processKeyEvent</A></B>(<A HREF="../../java/awt/event/KeyEvent.html">KeyEvent</A> e)</CODE><BR> Handles <code>KeyEvent</code>s, looking for the Tab key.</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/JComboBox.html#removeActionListener(java.awt.event.ActionListener)">removeActionListener</A></B>(<A HREF="../../java/awt/event/ActionListener.html">ActionListener</A> l)</CODE><BR> Removes an <code>ActionListener</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><A HREF="../../javax/swing/JComboBox.html#removeAllItems()">removeAllItems</A></B>()</CODE><BR> Removes all items from the item list.</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/JComboBox.html#removeItem(java.lang.Object)">removeItem</A></B>(<A HREF="../../java/lang/Object.html">Object</A> anObject)</CODE><BR> Removes an item from the item list.</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/JComboBox.html#removeItemAt(int)">removeItemAt</A></B>(int anIndex)</CODE><BR> Removes the item at <code>anIndex</code> This method works only if the <code>JComboBox</code> uses the default data model.</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/JComboBox.html#removeItemListener(java.awt.event.ItemListener)">removeItemListener</A></B>(<A HREF="../../java/awt/event/ItemListener.html">ItemListener</A> aListener)</CODE><BR> Removes an <code>ItemListener</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#selectedItemChanged()">selectedItemChanged</A></B>()</CODE><BR> This method is called when the selected item changes.</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 + -