Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 3280
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Arthur, where are your pants? Check under this tiny ad.
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic