2024-03-30
This commit is contained in:
23
doc/06_combo_box.md
Normal file
23
doc/06_combo_box.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 콤보 박스
|
||||
|
||||
* `JComboBox()` / `JComboBox(Object[])` / `JComboBox(ComboBoxModel)`
|
||||
|
||||
|
||||
* `addItem(Object)` / `insertItemAt(Object,int)` : 항목을 동적으로 변경하려면, 콤보 박스의 데이터 모델이 MutableComboBoxModel이어야 한다.
|
||||
* `getSelectedItem()` / `getItemAt(int)`
|
||||
* `remoceItem(Object)` /`removeItemAt(int)` / `removeAllItems()` : 항목을 동적으로 변경하려면, 콤보 박스의 데이터 모델이 MutableComboBoxModel이어야 한다.
|
||||
* `getItemCount()`
|
||||
* `getModel()` / `setModel(ComboBoxModel)`
|
||||
* `getAction()` / `setActionAction)`
|
||||
|
||||
|
||||
* `addActionListener()`
|
||||
* `addItemListener()`
|
||||
|
||||
|
||||
* `isEditable()` / `setEditable(boolean)`
|
||||
|
||||
|
||||
* `getRenderer()` / `setRenderer(ListCellRenderer)` : 아이템 뷰를 커스터마이징 할 때 사용한다. 콤보 박스가 editable 일 때에는 editor가 대신 사용된다.
|
||||
* `getEditor()` / `setEditor(ComboBoxEditor)` : 콤보 박스가 editable 일 때 사용된다.
|
||||
|
||||
Reference in New Issue
Block a user