Forums Register Login

stop JTable cells editing

+Pie Number of slices to send: Send
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)
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
isCellEditable() works fine for me

+Pie Number of slices to send: Send
Thanxxx...........Michael
it really works.....
thank u
mona
Well behaved women rarely make history - Eleanor Roosevelt. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2267 times.
Similar Threads
two questions about columns in JTable
JFrame and JTable
JTable Help
JTable, custom renderers
JTable problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:02:45.