 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Robson Guest
|
Posted: Thu Jul 27, 2006 11:56 pm Post subject: JdbTable + JdbComboBox |
|
|
Hi,
I´m using a JdbComboBox as DefaultCellEditor.
here is my code:
JdbComboBox() ComboBox1 = new JdbComboBox();
ComboBox1.setDataSet(query);
ComboBox1.setColumnName("table_column");
jdbTable1.getColumnModel().getColumn(1).setCellEditor(new
DefaultCellEditor(ComboBox1))
It´s working, I can choose items using the combo, but my problem is if in a
row of jdbtable I click on the second row, on the same column (jdbcombobox).
The combo is activated in the second line but it change the selection in the
first line !!
I´m using another cell editor because I need a editable combo with 2 or more
columns and picklist is not editable.
any suggestions ?
thanks
Robson |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Fri Jul 28, 2006 1:38 am Post subject: Re: JdbTable + JdbComboBox |
|
|
Robson wrote:
| Quote: | I4m using a JdbComboBox as DefaultCellEditor.
here is my code:
|
If you really want to use a JdbComboBox for a column, set the lookup
properties for the column and the combo box will be created for you
automatically.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
Robson Guest
|
Posted: Fri Jul 28, 2006 8:26 pm Post subject: Re: JdbTable + JdbComboBox |
|
|
ok, picklist property ?
but the combo in the picklist is not editable
is there a property to change this ?
thanks
Robson |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|