• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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: 3244
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
 
I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic