How do I make a JTable read only?

Questions and answers on developing, deploying and using plugins and JavaBeans

How do I make a JTable read only?

Postby rvpm » Sat Aug 31, 2013 9:44 am

I have instantiated a JTable bean on a form and set the cellSelectionEnabled to false as well as columnSelectionAllowed and rowSelectionAllowed.

If I double click on a cell, I am still able to edit the cell's contents. How do I set the entire table to read only?

I saw a few notes on various blogs about overriding the isCellEditable method but I am not certain that is possible within the Servoy environment.

Thank you in advance for your inputs.
Ron McBean
Realm Information Technologies
SAN Partner
rvpm
 
Posts: 41
Joined: Fri Feb 09, 2007 3:35 am
Location: Chandler, AZ

Re: How do I make a JTable read only?

Postby david » Sat Aug 31, 2013 10:21 pm

Recommend http://www.servoy-plugins.de/beans/tabl ... -bean.html if you're looking at JTable.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 22 guests