This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
two questions about columns in JTable
JTable, custom renderers
JTable Help
JTable problem
JFrame and JTable