Is it possible to create a border box that conforms to the dimensions of a UITable?

1 view (last 30 days)
I've been reviewing the MATLAB documentation pertaining to the UITable function. One thing I'm not seeing is a parameter that allows the user to place a border around the UITable, once it's built.
Can this be done with a UITable?

Accepted Answer

Walter Roberson
Walter Roberson on 2 Feb 2017
Place the uitable inside a uipanel and set the BorderType property of the uipanel
  1 Comment
Suresh S
Suresh S on 13 Apr 2018
Could you help me create a uitable inside the uipanel. what is wrong here ?
Disp_rad_panel = uipanel(id,'Title','Front RADAR','FontSize',10,...
'BackgroundColor',[0.8 0.8 0.8],'Position',[0.01 .53 0.42 .13],'FontAngle','italic','FontWeight','bold');
Col_name = {'Tar 1','Tar 2','Tar 3','Tar 4','Tar 5','Nearest'};
Row_name = {'veh Id','Dis (m)','FoV(°)','spd(km)','TTC(s)'};
Frnt_rad_defu_data=nan(5,6);
Frnt_rad_table = uitable('Parent',Disp_rad_panel,'Data',Frnt_rad_defu_data,...
'ColumnName',Col_name,'RowName',Row_name,'Position',[0.1 0.1 0.99 0.95]);

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps 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!