No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
GUI_sheet ; Java GUI table from MATLAB

4.6 | 10 ratings Rate this file 10 Downloads (last 30 days) File Size: 3.77 KB File ID: #5752 Version: 1.0
image thumbnail

GUI_sheet ; Java GUI table from MATLAB



23 Aug 2004 (Updated )

Creates a GUI table from a structure with custom data and behaviour.

| Watch this File

File Information

Create a Java-Mathworks GUI table from your structure in a separate window. Table can be: edited by the user, resized, hidden, confirmed. You can easily display the predefined size of the table to the user, he then edits the data (aka Array or Matrix Editor in MATLAB) and you can import/export the data afterwards. This feature is missing in GUI, can be accessed only from calling java functions in an external window with programmed properties. You can add and program buttons for actions related to the table afterwards, or access data from command line.
Tested in MATLAB R12 R13 R14.
Should be understood as an example on how to do the Java tables, not as a fixed product on tables in MATLAB.

MATLAB release MATLAB 6.5.1 (R13SP1)
Other requirements Java enabled in Matlab, comes as factory default :-)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (16)
31 Jul 2015 M R

M R (view profile)

Working great with R14 but in MatLAB 2014 I receive this error:

Error using gui_sheet (line 77)
Parameter must be scalar.

Line 7 is this:
set(co, 'HeaderVisible', 'on');

Any solution or update for recent version of MATLAB?

Comment only
05 Oct 2010 Vlad Atanasiu

Vlad Atanasiu (view profile)

Simple and elegant. Thank you!

10 Jun 2009 Isaac

Isaac (view profile)

If this is still active, should the "License" be updated to be the GNU GPL (1,2,3) or restated as a Google Public License? The text "GPL (" can be misinterpreted....
Also, my compliments for facing down the demons of awt and friends! ;-)

Comment only
07 Jun 2008 Breno Carneiro Pinheiro

Hi All, I have a issue to solve.

I already have an application from where I'd love to call your table code to show some values. The problem is that I need to generate an executable file to run on other machines without Matlab installed. To do this I use the mbuild -setup command, choose my compiler (Microsoft Visual C/C++ version 6.0) and the mcc -m command. It seems that the gui_sheet.m uses java, so I wonder know how I could generate this executable that gather all my files along with the one you made available on net.

Thanks in advance,


05 Dec 2007 Andrej Mosat

To: Wojciech Chojnowski
Yes, you have to set the table object as editable.
From the code:
% setting the behaviour of the table (can be found in java awt documentation, or methods of java table)
should do the trick.
I don`t know if something changed in java AWT in Matlab 2006b, but presumably not.

Try to debug the application and see the methods/properties of the object "b", which is the java AWT Table object instance. There should be something like "editable" property.
stop at the point b.setExcelMode(1);
and in the matlab command line press:

I hope this helps if not, blame mathworks for it :-)

Comment only
08 Oct 2007 Adolfo Cardona


28 Sep 2007 Wojciech Chojnowski

Is it possible to change values in table? Using Matlab R2006b I can resize table and columns but can't change cell value.

Comment only
12 Apr 2007 christoph huber

10 Feb 2007 Paul Nita

nice piece of work.

08 Feb 2007 andy sio

cool stuff dude

14 Jan 2007 David Susanto

Simple but though, but still need more improvement

18 Jan 2006 Andrej Mosat

Planning a new version. As the printing in Java is rather complicated (for me :-) I don`t know if I can handle it alone within 2 months. Experiments show, that printing involves setting up a page object, rendering the framebuffer and putting this to printable object. Actually what u see is what u get. This delivers many problems: e.g. fonts, line thickness, ... Also java 1.4.2 - 1.5.x seems to have some bug with linux printing. Thank you for ratings.

Comment only
18 Jan 2006 Peter Krug

Does what it claims. Simple, nice. Saving this figure to an image file would be nice.

03 May 2005 Venkatesh Rajmendram

It would be nice if this was feature in GUIDE it self

Comment only
12 Mar 2005 poe puri

Guide really needs some sort of table to display data. This is great!

29 Sep 2004 Albert von Strudeldorf

Nice implementation for a missing feature! It is platform independant, which is not the case of most "COM"-based hacks.
Matlab should definetly include this (or better a GUIDE element like this) in the next release.

26 Aug 2004

Description and text corrections

Contact us