Java based uitable in gui

1 view (last 30 days)
Vick
Vick on 15 Oct 2018
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

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!