• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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
 
The moustache of a titan! The ad of a flea:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic