Results 1 to 6 of 6
  1. #1
    simmi is offline Member
    Join Date
    Apr 2009
    Posts
    29
    Rep Power
    0

    Default Highlight rows of a jtable

    Hi,

    I have a Jtable and I want to highlight particular rows of Jtbale when a condition is met.These rows are not the selected rows.I know the row no.s which I want to highlight.Can anyone tell me the way to do that.

    Thanks in Advace,
    Simmi

  2. #2
    simmi is offline Member
    Join Date
    Apr 2009
    Posts
    29
    Rep Power
    0

    Default

    Hi All,

    Can anyone please help on this.

    Thanks,
    Simmi

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    edit: correction. The statement above should read "to customize your table's cell renderers, although the link is the same. Sorry for the error.

  5. #5
    simmi is offline Member
    Join Date
    Apr 2009
    Posts
    29
    Rep Power
    0

    Default

    Thnx.My problem got resolved by using

    setRowSelectionInterval(int index0, int index1)
    addRowSelectionInterval(int index0, int index1)

    methods of jtable :-))


    Simmi

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Replies: 0
    Last Post: 01-23-2009, 05:36 PM
  2. JTable in Frame only shows 3 rows
    By Laura Warren in forum New To Java
    Replies: 4
    Last Post: 12-24-2008, 06:48 AM
  3. Deleting All rows in the JTable
    By surot in forum New To Java
    Replies: 1
    Last Post: 04-16-2008, 11:44 AM
  4. display rows in jtable
    By osval in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2007, 09:54 PM
  5. GNU Source-highlight 2.7
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-12-2007, 09:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •