Results 1 to 3 of 3
Thread: Jtable and cell coordinates
- 11-17-2009, 03:28 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 5
- Rep Power
- 0
Jtable and cell coordinates
Dear all,
I'm using a JTable in NetBeans and I'm using some user-defined JDialog(s) as cell editors (as matter of fact, the data within the cells needs to be formatted in a very specific way).
Well, I wanna show this JDialog(s) just beside the selected cell from the JTable object, but I don't find any method in JTable that let me get the X and Y coordinate of the top-left corrner (or any other corner) of the cell. However, I can get the mouse location when I click on the cell and I also can find the width of the column from which the cell belongs to.
Any idea?
Thanks in advance.
Best regards.
Roy
- 11-17-2009, 05:35 PM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,158
- Rep Power
- 5
Look for a method that returns a Rectangle object.but I don't find any method in JTable that let me get the X and Y coordinate of the top-left corrner
- 11-17-2009, 05:48 PM #3
Member
- Join Date
- Nov 2009
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
jtable cell renderer
By ankitmcgill in forum New To JavaReplies: 2Last Post: 05-22-2009, 01:08 AM -
add a check box to only one cell in a JTable
By aruna1 in forum New To JavaReplies: 4Last Post: 04-03-2009, 06:28 PM -
Color cell in JTable
By ippacciani in forum AWT / SwingReplies: 3Last Post: 03-25-2009, 11:53 AM -
jTable Cell editing
By mahaling_m in forum AWT / SwingReplies: 0Last Post: 06-23-2008, 08:17 AM -
Jframe In Jtable cell
By Clarion in forum AWT / SwingReplies: 4Last Post: 06-23-2008, 04:42 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks