• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

getValueAt(int row, int col)

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am really stuck on this point.


On console I could see that my row value increments to 9 starting from 0. I have no idea why?
I would need record number along with the values. I tried many things , nothing seem working for me. Pleae help and guide me how to pass recNo which is contained in contractorRecords.
Any help is appreciated

Thanks

Uzma
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi uzma,

the getValue method will be called for every cell int your table.
That's why you see the rownumbers going up from 0 to 9.

Herman
 
uzma ali
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But there are only 14 records are fetched for the search I do so how this 10 row come in the picture.

Can you explain and also can you help me in second question how to transfer the recNo with the record values to Main file while I am using hashmap

thanks

Uzma
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi uzma,

I don't quite understand you, so maybe you can post your getColumnCount and getRowCount methods?

Herman
 
look! it's a bird! it's a plane! It's .... a teeny tiny ad
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!