Access to the upper left corner of `uitable`

In uitableI want to access a cell above row labels and to the left of column labels. I would like to add text to this area. It can be done?

enter image description here

+4
source share
1 answer

The short answer is yes, but it's a bit of a pain. You can add text uicontroland place it accordingly.

Functional example:

% Dummy figure and table
f = figure;
d = gallery('integerdata',100,[10 3],0);
t = uitable(f,'Data',d,'ColumnWidth',{50});

% Add text uicontrol and position appropriately
txt = uicontrol( ...
    'Style', 'text', ...
    'BackgroundColor', 'magenta', ...
    'String', 'hi', ...
    'Units', 'Pixels', ...
    'Position', [21 300 32 19] ...
    );

Which gives us the following:

yay

, , , . uicontrol ; Java ( - ).

MATLAB Java, , Java . , .

+2

Source: https://habr.com/ru/post/1621012/


All Articles