Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add dynamic row in jtable with first column contains jcombobox?  RSS feed

 
sumit jagtap
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have add to dynamic row in jtable using add row button , after that row of first column contain jcombobox. when i select jcombobox value then get the respected values of from database and fill the same row only.

after same action will done for next row....

kindly help me in that case....
 
sumit jagtap
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please any buddy help me???
 
Campbell Ritchie
Sheriff
Posts: 53742
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this.

We usualoly discuss tables in the GUIs forum, so I shall move this discussion thither.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Table rows are dependent on the data in the backing model. When you want to insert a new row invoke the appropriate addXXX method on the model.
Recommended reading: http://docs.oracle.com/javase/tutorial/uiswing/components/table.html
 
sumit jagtap
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Maneesh Godbole i have got the solution...thanks for reply..
 
sumit jagtap
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Read this.

We usualoly discuss tables in the GUIs forum, so I shall move this discussion thither.





thanks Campbell Ritchie ... will take care of that in future..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!