Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Problem with insertRow in Matlab2012b
Replies: 6   Last Post: Mar 13, 2013 8:37 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dennis B.

Posts: 14
Registered: 11/17/11
Problem with insertRow in Matlab2012b
Posted: Mar 7, 2013 11:12 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear Community,

I have a Problem with inserting a new row in a uitable in Matlab2012b . I tried it as i unterstand it in chapter 4.1.6 in Yair Altmans book "Undocumented Secrets of MATLAB-Java Programming."

% get the handle struct from the figure
GdlConfigDlgHandles_st = guidata(hGdlConfigDlg);
% get the table handle
hTable_ja = GdlConfigDlgHandles_st.tbl_hTable_ja;
%get the underlying java table handle
jScroll_ja = sc_findjobj(hTable_ja);
jTable_ja = jScroll_ja.getViewport.getView;

jTable_ja.getModel.insertRow(newRowIdx, newRowData);

But the function 'insertRow' does not exists.
Is this a new problem of the matlab 2012b version? Has the Java-API changed? If yes: Please explain to me, how i can fix this. I dont find any machting api-function :-/

Thanks and greetings
D.B.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.