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
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Swing / AWT / SWT
JTable - prohibit selecting row 2 - rowCount
Lisa Zapson
Ranch Hand
Posts: 50
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm trying to prohibit selecting certain rows in a JTable, but not all rows. Any suggestions would be very much appreciated.
Thanks, Lisa
prashant gour
Ranch Hand
Posts: 45
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
if you have fixed row then use ListSelectionListener and play with these methods in valueChanged
Table.setColumnSelectionAllowed(true);
Table.setRowSelectionAllowed(true);
hope this will fine with you
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JTable Cell Selection color
Multiple selection in JTable
JTable problem
JTable row update
Problem with a JTable
More...