<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/166290</link>
    <title>MATLAB Central Newsreader - Putting checkboxes in only some rows of a uitable</title>
    <description>Feed for thread: Putting checkboxes in only some rows of a uitable</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 24 Mar 2008 23:27:02 -0400</pubDate>
      <title>Putting checkboxes in only some rows of a uitable</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/166290#422599</link>
      <author>Matthew Whitaker</author>
      <description>Hello,&lt;br&gt;
I'm trying to create something similar to the property &lt;br&gt;
editor for a structure. I can create a uitable(old style - &lt;br&gt;
using R2006b) and set the columns to the fieldnames and &lt;br&gt;
values (similar to the ipttable function). However I'd like &lt;br&gt;
to show the fields that are boolean values as check boxes. &lt;br&gt;
It seems that matlab/java really wants the whole column to &lt;br&gt;
be the same( textbox, combo, checkbox...). Is there a way &lt;br&gt;
to give individual cells different renderers (e.g cell(1,1) &lt;br&gt;
to be a textbox, cell(2,1) to be a check and so on down the &lt;br&gt;
column.&lt;br&gt;
&lt;br&gt;
Or is the uitable/JTable really the wrong component for &lt;br&gt;
this?&lt;br&gt;
&lt;br&gt;
Thanks in advance for your assistance&lt;br&gt;
Matt</description>
    </item>
    <item>
      <pubDate>Thu, 29 Jan 2009 09:37:02 -0500</pubDate>
      <title>Re: Putting checkboxes in only some rows of a uitable</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/166290#624702</link>
      <author>Lihua Pan</author>
      <description>It seems that I have the same problem with you.&lt;br&gt;
I've created a JTable to display a property list(property name and value), some row should be a combo and some checkbox. But in JTable it is only allowed to set the cellEditor for one column, so I' like to use a indirect way. That is by double mouse click on a table cell, it will pop up a combo box and let you select the value. However, I can not find a callback function which can handle the event correctly without overriding the java class. If use such as &quot;ValueChangedCallback&quot; of selection listener or &quot;PropertyChangeCallback&quot; of JTable, the change effect of the cellEditor will be applied only when you click on a next cell.&lt;br&gt;
Has anyone similar experience or any alternative suggestion?&lt;br&gt;
Thank you for your help!&lt;br&gt;
&lt;br&gt;
&quot;Matthew Whitaker&quot; &amp;lt;mattlwhitaker@REMOVEgmail.com&amp;gt; wrote in message &amp;lt;fs9dc5$7b7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello,&lt;br&gt;
&amp;gt; I'm trying to create something similar to the property &lt;br&gt;
&amp;gt; editor for a structure. I can create a uitable(old style - &lt;br&gt;
&amp;gt; using R2006b) and set the columns to the fieldnames and &lt;br&gt;
&amp;gt; values (similar to the ipttable function). However I'd like &lt;br&gt;
&amp;gt; to show the fields that are boolean values as check boxes. &lt;br&gt;
&amp;gt; It seems that matlab/java really wants the whole column to &lt;br&gt;
&amp;gt; be the same( textbox, combo, checkbox...). Is there a way &lt;br&gt;
&amp;gt; to give individual cells different renderers (e.g cell(1,1) &lt;br&gt;
&amp;gt; to be a textbox, cell(2,1) to be a check and so on down the &lt;br&gt;
&amp;gt; column.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Or is the uitable/JTable really the wrong component for &lt;br&gt;
&amp;gt; this?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks in advance for your assistance&lt;br&gt;
&amp;gt; Matt</description>
    </item>
  </channel>
</rss>

