From: Robert Aungst on
Hello,

Many of uitables abilities are controlled by the java renderer that
it implements. Has anyone been able to implement a custom renderer
that could change font etc, ala JTable?

Regards,
Robert
From: Michael Robbins on
> Many of uitables abilities are controlled by the java renderer that
> it implements. Has anyone been able to implement a custom renderer
> that could change font etc, ala JTable?

Maybe you'd be satisfied with an ActiveX grid?

FILLGRID
<http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7765&objectType=file>



Other functions that will help you with grids:

Spreadsheet <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=6889&objectType=FILE>



graph_and_table
<http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3477&objectType=FILE>



QuestDlgWithGrid -- questdlg, with the useful addition of a grid
object to display the data. <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7582&objectType=FILE>





I submitted many more. I hope you find some of them useful:

<http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=828141&objectType=author>
From: Robert Aungst on
The project I'm working on is platform independent, so ActiveX isn't
an option. I've discovered a lot about implementing many of Jtable's
methods in uitable, I just ran into a wall where it uses a custom
renderer to format parts of the table.

Michael Robbins wrote:
>
>
>> Many of uitables abilities are controlled by the java renderer
> that
>> it implements. Has anyone been able to implement a custom
> renderer
>> that could change font etc, ala JTable?
>
> Maybe you'd be satisfied with an ActiveX grid?
>
> FILLGRID
> <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7765&objectType=file>
>
>
>
> Other functions that will help you with grids:
>
> Spreadsheet <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=6889&objectType=FILE>
>
>
>
> graph_and_table
> <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3477&objectType=FILE>
>
>
>
> QuestDlgWithGrid -- questdlg, with the useful addition of a grid
> object to display the data. <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7582&objectType=FILE>
>
>
>
>
>
> I submitted many more. I hope you find some of them useful:
>
> <http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=828141&objectType=author>
>
From: Brad Phelan on
Robert Aungst wrote:
> Hello,
>
> Many of uitables abilities are controlled by the java renderer that
> it implements. Has anyone been able to implement a custom renderer
> that could change font etc, ala JTable?
>
> Regards,
> Robert

To implement a new renderer you would have to do some java programming.
That being said there is a neat library of custom renderers at

https://renderpack.dev.java.net/

you could use easily from matlab without having to subclass the base
renderers.

--
Brad Phelan
http://xtargets.com/Matlab-Snippets
From: Robert Aungst on
Brad Phelan wrote:
>
>
> Robert Aungst wrote:
>> Hello,
>>
>> Many of uitables abilities are controlled by the java renderer
> that
>> it implements. Has anyone been able to implement a custom
> renderer
>> that could change font etc, ala JTable?
>>
>> Regards,
>> Robert
>
> To implement a new renderer you would have to do some java
> programming.
> That being said there is a neat library of custom renderers at
>
> <https://renderpack.dev.java.net/>
>
> you could use easily from matlab without having to subclass the
> base
> renderers.
>
> --
> Brad Phelan
> <http://xtargets.com/Matlab-Snippets>
>

Thats a perfect start. I havent been able to get those to work
though. *jar files that I have compiled my self work fine, however
the renderers don't want to be recognized:

>> javaaddpath('C:\renderpack.jar');
>> x = renderpack;
??? Undefined function or variable 'renderpack'.

What am I doing wrong?

Robert