BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JdbTable + JdbComboBox

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing
View previous topic :: View next topic  
Author Message
Robson
Guest





PostPosted: Thu Jul 27, 2006 11:56 pm    Post subject: JdbTable + JdbComboBox Reply with quote



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





PostPosted: Fri Jul 28, 2006 1:38 am    Post subject: Re: JdbTable + JdbComboBox Reply with quote



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





PostPosted: Fri Jul 28, 2006 8:26 pm    Post subject: Re: JdbTable + JdbComboBox Reply with quote



ok, picklist property ?
but the combo in the picklist is not editable
is there a property to change this ?

thanks
Robson
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.