[BBB-USERS] Re: Binding a JComboBox
- From: <avital.nahon@gmail.com>
- To: users@betterbeansbinding.kenai.com
- Subject: [BBB-USERS] Re: Binding a JComboBox
- Date: Tue, 19 Jan 2010 18:22:31 +0000 (GMT)
Hi Rom
You need read-write binding between "combobox.selectedItem.reference"
and "beanOne.bean2reference"
Regarding the display, you need to change the renderer of combobox by
calling combobox.setRenderer.
If you need to input the description you have to call setEditor and
pass a customized editor and (it gets complicated... there is a need a
bi-di map between ref and desc).
Good luck
Avital
|
[BBB-USERS] Re: Binding a JComboBox |
avital.nahon | 01/19/2010 |
| Rom Yatziv | 01/19/2010 | |
|
<Possible follow-up(s)> |
||
| avital.nahon | 01/19/2010 |





