java/JComboBox

java

public class JComboBox extends JComponent implements ItemSelectable, ListDataListener, ActionListener, Accessible

constructor

  • JComboBox(ComboBoxModel model)
  • JComboBox(Object[] items)
    • items がComboBoxに入る
  • JComboBox(Vector<?> items)
  • JComboBox()

method

  • public void installAncestorListener()
  • public void setUI(ComboBox ui)
  • public void updateUI()
  • public String getUIClassID()
  • public ComboBoxUI getUI()
  • public void setModel(ComboBoxModel model)
  • public ComboBoxModel getModel()
  • public void setLightWeightPopupEnabled(boolean b)
  • public boolean isLightWeightPopupEnabled()
  • public void setEditable(boolean b)
    • 選択項目をJComboBoxフィールドでペイントおよび編集可能にする
  • public boolean isEditable()
  • public void setMacimumRowCount(int count)
    • 表示する最大行数の設定
  • public int getMaximumRowCount()
  • public void setRenderer(ListCelRenderer renderer)
  • public ListCellRenderer getRenderer()
  • public void setEditor(ComboBoxEditor editor)
    • 選択項目をJComboBoxフィールドでペイントおよび編集するために使用するEditorを指定する。
  • public ComboBoxEditor getEditor()
  • public void setSelectedItem(Object obj)
    • objがリストにあるとき、表示領域にobjを表示。
  • public Object getSelectedItem()
  • public void setSelectedIndex(int index)
  • public int getSelectedIndex()
  • public Object getPrototypeDisplayValue()
  • public void setPrototypeDisplayValue(Object prototypeDisplayValue)
  • public void addItem(Object obj)
  • public void insertItem(Object obj, int index)
  • public void removeItem(Object obj)
  • public void removeItemAt(int index)
  • public void removeAllItems()
  • public void showPopup()
  • public void hidePopup()
  • public void setPopupVisible(boolean b)
  • public boolean isPopupVisible()
  • public void addItemListener(ItemListener l)
  • public void removeItemListener(ItemListener l)
  • public ItemListener[] getItemListeners()
  • public void addActionLitener(ActionListener l)
  • public void removeActionListener(ActionListener l)
  • public ActionListener[] getActionListeners()
  • public void addPopupMenuListener(PopupMenuListener l)
  • public void removePopupMenuListener(PopupMenuListener l)
  • public PopupMenuListener[] getPopupMenuListeners()
  • public void firePopupMenuWillBecomeVisible()
  • public void firePopupMenuWillBecomeInvisible()
  • public void firePopupMenuCanceled()

飽きた