2.0

2.0 | 1 rating Rate this file 231 downloads (last 30 days) File Size: 1.72 KB File ID: #21205

javaTable

by Matt Dunham

 

24 Aug 2008 (Updated 25 Aug 2008)

No BSD License  

Simple function to display cell array data in a nice looking Java JTable

Download Now | Watch this File

File Information
Description

This simple function lets you display a 2D cell array of strings in a Java JTable, which resembles a spreadsheet complete with scroll bars. You simply pass in the cell array, the column names and the name of the table and a new java window pops up showing the data.

MATLAB release MATLAB 7.6 (R2008a)
Other requirements Java
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
30 Oct 2008 Anthony Beauchamp

do you how can I create a callback in matlab if the user change sleection from one row to another? Thank you and good work.

11 Dec 2008 matt dash

No help file. Gives all kinds of java exceptions if number of columns doesnt match size of data. Would be more useful if it was in a matlab window instead of a java window.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
structures Matt Dunham 22 Oct 2008 10:15:52
cell arrays Matt Dunham 22 Oct 2008 10:15:52
java Matt Dunham 22 Oct 2008 10:15:52
jtable Matt Dunham 22 Oct 2008 10:15:52
cell array Matt Dunham 22 Oct 2008 10:15:52
graphical table Matt Dunham 22 Oct 2008 10:15:52
spreadsheet Matt Dunham 22 Oct 2008 10:15:52
table Matt Dunham 22 Oct 2008 10:15:52
jtable David 16 Dec 2008 10:14:28
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com