Select a row in a JTable

Discussion in 'Java' started by asd@asd.com, May 13, 2004.

  1. Guest

    When I click on a cell, I'd like the whole row to be highlighted,
    INCLUDING the selected cell. I've tried using the following code to no
    avail:

    setCellSelectionEnabled(false);
    setColumnSelectionEnabled(false);
    setRowSelectionEnabled(true);

    Help would be much appreciated.

    Prefer replies to

    Thanks.
     
    , May 13, 2004
    #1
    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. Fernando Lopes
    Replies:
    0
    Views:
    3,209
    Fernando Lopes
    Apr 28, 2005
  2. Tivo Escobar
    Replies:
    1
    Views:
    7,486
    manusa
    Apr 12, 2007
  3. Tintin92
    Replies:
    1
    Views:
    1,778
    Andrew Thompson
    Feb 14, 2007
  4. D
    Replies:
    0
    Views:
    239
  5. Haircuts Are Important
    Replies:
    3
    Views:
    386
    Haircuts Are Important
    Jun 4, 2013
Loading...

Share This Page