JTable: which is the current cell?

K

keepa

Maybe I am missing something, but I can't figure out how to query a
JTable for the current cell (assuming single cell selection). How do
you do that?
 
V

Vova Reznik

keepa said:
Maybe I am missing something, but I can't figure out how to query a
JTable for the current cell (assuming single cell selection). How do
you do that?

JTable:
public int getSelectedRow()
public int getSelectedColumn()

(if single selection)
 
T

Thomas Fritsch

keepa said:
Maybe I am missing something, but I can't figure out how to query a
JTable for the current cell (assuming single cell selection). How do
you do that?
By reading the API doc of JTable.
Look for getSelected...(...) and maybe other methods.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
DewittMill
Top