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

About AbstractTableModel, would you tell me my mistake here??  RSS feed

 
Ramses Butarbutar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made some exercise to show checkbox in a table using mysql for it's db.
in main class i use code to retrieve data onto table like this :


and TableUser class :


My problem is the table show checkbox for each data and i set true for it in checkbox. But when i unchecked, it's affect only one row, and i can not change the state other row.. would you tell me guys my mistake here.. any comment or a clue how to fix this..

Thanks alot

Best regards
 
Rob Camick
Ranch Hand
Posts: 2754
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


It should only affect one row. Each data in each row is independent of the data in all other rows.
 
Ramses Butarbutar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote:

It should only affect one row. Each data in each row is independent of the data in all other rows.


Sorry for my late reply rob..

What i wanna say here is i can not change the state the next row.
For example there are two row data.. i can check or uncheck the checkbox of first row but i cannot change the state of next row, i cannot click the checkbox. Is there some explanation about this???

Thanks

ramses
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!