📄 jcombobox.html
字号:
<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#addItemListener(java.awt.event.ItemListener)">addItemListener</A></B>(<A HREF="../../java/awt/event/ItemListener.html">ItemListener</A> aListener)</CODE><BR> Adds an <code>ItemListener</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#configureEditor(javax.swing.ComboBoxEditor, java.lang.Object)">configureEditor</A></B>(<A HREF="../../javax/swing/ComboBoxEditor.html">ComboBoxEditor</A> anEditor, <A HREF="../../java/lang/Object.html">Object</A> anItem)</CODE><BR> Initializes the editor with the specified item.</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#configurePropertiesFromAction(javax.swing.Action)">configurePropertiesFromAction</A></B>(<A HREF="../../javax/swing/Action.html">Action</A> a)</CODE><BR> Factory method which sets the <code>ActionEvent</code> source's properties according to values from the <code>Action</code> instance.</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#contentsChanged(javax.swing.event.ListDataEvent)">contentsChanged</A></B>(<A HREF="../../javax/swing/event/ListDataEvent.html">ListDataEvent</A> e)</CODE><BR> This method is public as an implementation side effect.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#createActionPropertyChangeListener(javax.swing.Action)">createActionPropertyChangeListener</A></B>(<A HREF="../../javax/swing/Action.html">Action</A> a)</CODE><BR> Factory method which creates the <code>PropertyChangeListener</code> used to update the <code>ActionEvent</code> source as properties change on its <code>Action</code> instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/JComboBox.KeySelectionManager.html">JComboBox.KeySelectionManager</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#createDefaultKeySelectionManager()">createDefaultKeySelectionManager</A></B>()</CODE><BR> Returns an instance of the default key-selection manager.</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#fireActionEvent()">fireActionEvent</A></B>()</CODE><BR> Notifies all listeners that have registered interest for notification on this event type.</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#fireItemStateChanged(java.awt.event.ItemEvent)">fireItemStateChanged</A></B>(<A HREF="../../java/awt/event/ItemEvent.html">ItemEvent</A> e)</CODE><BR> Notifies all listeners that have registered interest for notification on this event type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE><BR> Gets the AccessibleContext associated with this JComboBox.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/Action.html">Action</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#getAction()">getAction</A></B>()</CODE><BR> Returns the currently set <code>Action</code> for this <code>ActionEvent</code> source, or <code>null</code> if no <code>Action</code> is set.</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#getActionCommand()">getActionCommand</A></B>()</CODE><BR> Returns the action command that is included in the event sent to action listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/ComboBoxEditor.html">ComboBoxEditor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#getEditor()">getEditor</A></B>()</CODE><BR> Returns the editor used to paint and edit the selected item in the <code>JComboBox</code> field.</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#getItemAt(int)">getItemAt</A></B>(int index)</CODE><BR> Returns the list item at the specified index.</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/JComboBox.html#getItemCount()">getItemCount</A></B>()</CODE><BR> Returns the number of items in the list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/JComboBox.KeySelectionManager.html">JComboBox.KeySelectionManager</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#getKeySelectionManager()">getKeySelectionManager</A></B>()</CODE><BR> Returns the list's key-selection manager.</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/JComboBox.html#getMaximumRowCount()">getMaximumRowCount</A></B>()</CODE><BR> Returns the maximum number of items the combo box can display without a scrollbar</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/ComboBoxModel.html">ComboBoxModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#getModel()">getModel</A></B>()</CODE><BR> Returns the data model currently used by the <code>JComboBox</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/ListCellRenderer.html">ListCellRenderer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JComboBox.html#getRenderer()">getRenderer</A></B>()</CODE><BR> Returns the renderer used to display the selected item in the <code>JComboBox</code> field.</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/JComboBox.html#getSelectedIndex()">getSelectedIndex</A></B>()</CODE><BR> Returns the first item in the list that matches the given 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#getSelectedItem()">getSelectedItem</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -