Java based uitable in gui

3 次查看(过去 30 天)
Vick
Vick 2018-10-15
Hi all, I wanted a uitable exactly like a spreadsheet table(single click to select and double click to edit). In the current uitable it is irritating to work. For this i can wirte a custom funtion but how to trigger mouse double click with the help of java.
I have also checked with Yair's "Java-based data table", i work fine but following are the issues i face with Java-based data table 1. How to get handles inside callbacks, % On gui opening function handles.table_struct=createTable_set(handles.uipanel1,'Buttons',0,'Data',magic(3)); handles.table_struct.MouseClickedCallback=@mouse_clicked;
function mouse_clicked(handles,eventdata) % how to get handles inside this
handles.Current_selected_index=eventdata.Indices;
guidata(hObject,handles)
2. Need a custom row header 3. How to color each cells
I prefer to have a solution of just changing the uitable to spreadsheet kind of table instead of using a custom java addon like 'createtable' as i'm zero in java.
I'm using Matlab 2018a

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by