Get Rows of JTable

Discussion in 'Java' started by Ricardo Patricio, May 24, 2004.

  1. 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
    Ricardo Patricio, May 24, 2004
    #1
    1. Advertising

  2. Ricardo Patricio

    Corey Brown Guest

    "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
    Corey Brown, May 24, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tivo Escobar
    Replies:
    1
    Views:
    7,314
    manusa
    Apr 12, 2007
  2. Delali Dzirasa

    Removing Selected rows in JTable????

    Delali Dzirasa, Jan 19, 2004, in forum: Java
    Replies:
    2
    Views:
    28,281
    ekowus
    Aug 11, 2007
  3. steve

    hiding rows in a jtable

    steve, Jan 16, 2005, in forum: Java
    Replies:
    0
    Views:
    900
    steve
    Jan 16, 2005
  4. Tintin92
    Replies:
    1
    Views:
    1,697
    Andrew Thompson
    Feb 14, 2007
  5. Haircuts Are Important
    Replies:
    3
    Views:
    318
    Haircuts Are Important
    Jun 4, 2013
Loading...

Share This Page