JComboBox creation

Hello.

How I can create a new JComboBox by code?.

Thank you. Bye.

http://wiki.servoy.com/display/public/DOCS/JSForm#JSForm-newComboBox

I think it could be a good starting point

Hi.

Is there any way to create a JComboBox bean instead of a combobox?

Thank you. Bye.

Hi Francisco,

I don’t think you can instantiate a bean by code in Servoy.
What are you trying to do ?

I need to create a ComboBox when I press a button, and then add items as the names of the columns in a table that I selected earlier.

Thank you. Bye.

Hi Francisco,

But why do you want to use a JSComboBox bean? How will you add things to it’s value list ? How will you read out what you have selected ?
If it’s just that you want to use a combox that isn’t connected to a database column then you can create a form variable (or even a global variable) and use this as dataprovider.