Article View: borland.public.jbuilder.java.swing
Article #11610Re: JTable: Find Cell from point
From: Vasudevan Srinivasan
Date: Tue, 27 Apr 1999 00:00
Date: Tue, 27 Apr 1999 00:00
21 lines
1121 bytes
1121 bytes
Hi,
In JTable I think there is a method rowAtPoint:
you can use something like this:
int row = jTable1.rowAtPoint( mouseevent.getPoint() );
int col = jTable1.columnAtPoint( mouseevent.getPoint() );
hth
Vasu
George Tryfon wrote:
> I have a JTable,
> and I need to find the cell under my mouse.
> I have the point from cursor, but I can not get the (r,c) that coresponds to
> this point.
>
> How can I do this ?
>
> Thank you in advance
> George Tryfon
> george@compucon.gr
Technical Details
Message-ID:
<3725D278.3B07B9BD@netrisk.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7g4c3t$j0o3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,eb27909149ee8f3f X-Google-Attributes: gid111d45,public From: Vasudevan Srinivasan <vasudevan@netrisk.com> Subject: Re: JTable: Find Cell from point Date: 1999/04/27 Message-ID: <3725D278.3B07B9BD@netrisk.com> X-Deja-AN: 471491875 Content-Transfer-Encoding: 7bit References: <7g4c3t$j0o3@forums.borland.com> To: George Tryfon <george@compucon.gr> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: NetRisk Inc Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing