Path: news.mathworks.com!not-for-mail
From: "Matthew Whitaker" <mattlwhitaker@REMOVEgmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Putting checkboxes in only some rows of a uitable
Date: Mon, 24 Mar 2008 23:27:02 +0000 (UTC)
Organization: Radiological Imaging Technology Inc
Lines: 17
Message-ID: <fs9dc5$7b7$1@fred.mathworks.com>
Reply-To: "Matthew Whitaker" <mattlwhitaker@REMOVEgmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1206401222 7527 172.30.248.37 (24 Mar 2008 23:27:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 24 Mar 2008 23:27:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 10959
Xref: news.mathworks.com comp.soft-sys.matlab:458938



Hello,
I'm trying to create something similar to the property 
editor for a structure. I can create a uitable(old style - 
using R2006b) and set the columns to the fieldnames and 
values (similar to the ipttable function). However I'd like 
to show the fields that are boolean values as check boxes. 
It seems that matlab/java really wants the whole column to 
be the same( textbox, combo, checkbox...). Is there a way 
to give individual cells different renderers (e.g cell(1,1) 
to be a textbox, cell(2,1) to be a check and so on down the 
column.

Or is the uitable/JTable really the wrong component for 
this?

Thanks in advance for your assistance
Matt