Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

JViewport row index

Is there a way to the get the row index value from the first row displayed in a JViewport?  The row displayed isn't necessarily the first row from my model.
0
nateforrest1
Asked:
nateforrest1
1 Solution
 
objectsCommented:
Use JTable method rowAtPoint()

http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTable.html#rowAtPoint(java.awt.Point)

and pass the vieport origin as the point
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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