• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

JTable question

Hi,

I select a row in a JTable.
I do it using JTable.setRowSelectionInterval(theIndex, theIndex);
If the row is not visible the list is not making int visible. I want to do that.

Thanks
0
simi
Asked:
simi
  • 2
1 Solution
 
heyhey_Commented:
   table.setRowSelectionInterval(pos, pos);
    if (pos >= 0)
      table.scrollRectToVisible(table.getCellRect(pos, 0, true));
0
 
simiAuthor Commented:
Thanks.
Please answer it so I can assign you the points.
0
 
heyhey_Commented:
Answer :)

thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now