Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Grid widget for MATLAB?
Date: Fri, 2 Nov 2007 09:12:56 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 25
Message-ID: <fgepmo$e6v$1@fred.mathworks.com>
References: <472a52b5$0$13925$fa0fcedb@news.zen.co.uk>
Reply-To: <HIDDEN>
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 1193994776 14559 172.30.248.37 (2 Nov 2007 09:12:56 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 2 Nov 2007 09:12:56 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:435779



> I am thinking of using MATLAB to write a GUI application. I
> have done some simple GUI things with it, charts, dialogs, 
> etc. But, is there a grid-like control that can be used with
> MATLAB (similar to the Excel type grid)

Check this Java-based data table:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=14225
You may also look at some of my other submissions for
examples of using Java Swing for rich Matlab GUI:
http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&objectId=1096533

Matlab has an undocumented and unsupported built-in function
(uitable) that can also be a simple basic solution (my table
is basically an expanded wrapper for it). If you really want
fine-grained control over your data table/grid, consider
using your own Java object (like Swing's JTable or one of a
multitude of available Java widgets out there).

Lastly, if you only care about Windows, you can always embed
an ActiveX grid or table control. Look at the actxcontrol
and relatives.

Yair Altman
http://ymasoftware.com