Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Get Rows of JTable

Reply
Thread Tools

Get Rows of JTable

 
 
Ricardo Patricio
Guest
Posts: n/a
 
      05-24-2004
Hello,

I would like to now how is possible to get the Row that is selected by
an user in a Jtable.

Thank You
Ricardo Patrício
 
Reply With Quote
 
 
 
 
Corey Brown
Guest
Posts: n/a
 
      05-24-2004


"Ricardo Patricio" <> wrote in message news:40b20ea8$0$16126$...
> Hello,
>
> I would like to now how is possible to get the Row that is selected by
> an user in a Jtable.
>
> Thank You
> Ricardo Patrício


int[] rows = myTable.getSelectedRows();

Cheers,
--Corey


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
clear rows of JTable pat270881 Java 4 11-23-2012 11:22 PM
Removing Selected rows in JTable???? Delali Dzirasa Java 2 08-11-2007 01:06 AM
Putting a JTable inside a JTable cell? Tivo Escobar Java 1 04-12-2007 11:09 AM
How to move data from a CSV file to a JTable, and from a JTable to a CSV file ? Tintin92 Java 1 02-14-2007 06:51 PM
hiding rows in a jtable steve Java 0 01-16-2005 07:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57