[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

[BBB-USERS] Re: Binding a JComboBox

Rom Yatziv 01/19/2010

<Possible follow-up(s)>

[BBB-USERS] Re: Binding a JComboBox

avital.nahon 01/19/2010
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close