2024-03-30

This commit is contained in:
2024-03-30 19:57:14 +09:00
parent d4055752a9
commit 57cc9ca7ff
90 changed files with 4829 additions and 105 deletions

23
doc/06_combo_box.md Normal file
View 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 일 때 사용된다.