File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes stop JTable cells editing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "stop JTable cells editing" Watch "stop JTable cells editing" New topic

stop JTable cells editing

monica arora

Joined: Jun 29, 2006
Posts: 2
hi ...ranchers
i m using jTable in my project
i want JTable cells to be uneditable meaning user shuld not be able to edit
JTable cells .For this i m using method
public boolean isCellEditable(int rows ,int columns)
{return false;}
but this method is not can i make my JTable cells uneditable.
please friends help me.
i m waiting 4 ur reply
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Monica, this is a JSP forum.

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular, please see CarefullyChooseOneForum.

Again, welcome to JavaRanch and good luck with your question.

I'll ask that this thread be moved to the Swing forum for you.
[ June 30, 2006: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
isCellEditable() works fine for me

mona anshita

Joined: Jun 30, 2006
Posts: 5
it really works.....
thank u
I agree. Here's the link:
subject: stop JTable cells editing
It's not a secret anymore!