This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Jtable without cell selection? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Jtable without cell selection?" Watch "Jtable without cell selection?" New topic

Jtable without cell selection?

Rudolph Ten

Joined: Jan 23, 2002
Posts: 9
How do i create a Jtable without cell selection?
How do i make so cells are tranparent to user.....not editable......
user can only select row...not cell....
Newbie to Java here....
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
If you do a search in the swing forum, all of these questions have answers.
For the editing search on isCellEditable().
For your other question setRowSelectionAllowed() setCellSelectionEnabled().
I agree. Here's the link:
subject: Jtable without cell selection?
jQuery in Action, 3rd edition