1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Tuesday, May 7, 2002 11:28 PM

I learn that the method 'getSelectedRow()' helps to read the index of the selected row in a JTable. But how to read the value of that selected row given the index.

Re: JTable

Posted By:   prashanth_narayan  
Posted On:   Wednesday, May 8, 2002 07:20 AM

hai choong I am not goin to give u any short cuts

but this idea may help u..

well u got the selected row index (so u know it now)

and u know the number of columns u have rite?


use this method "getValueAt(int row, int column)"

use 2 for loops and sote the result inna vector or array

simple rite?

cheers happy coding

About | Sitemap | Contact