aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "stop JTable cells editing" Watch "stop JTable cells editing" New topic
Author

stop JTable cells editing

monica arora
Greenhorn

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 working.how can i make my JTable cells uneditable.
please friends help me.
i m waiting 4 ur reply
monica(mona)
Ben Souther
Sheriff

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.
-Ben

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
Greenhorn

Joined: Jun 30, 2006
Posts: 5
Thanxxx...........Michael
it really works.....
thank u
mona
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stop JTable cells editing