Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
Getting the index of the row in JTable
VenuArchana Aradhyula
Greenhorn
Posts: 13
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have a table which consists of columns like Select,Col1,Col2.
Select column is of Checkbox.
Let us assume that this table consists of 10 rows of data.
Now if i select the 5th row here i want to get the index of the checked 5th row.
Thanks
Rob Spoor
Sheriff
Posts: 22783
131
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Add a ListSelectionListener to the table's ListSelectionModel. You can retrieve the latter using JTable.getSelectionModel().
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Tomcat Server StartUp Failed
Row Selection problems with JTable
JTable Listener
Jtable cut and paste
Throwing an Exception when deleting a row
More...