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

2 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2017-2-2
Place the uitable inside a uipanel and set the BorderType property of the uipanel
  1 个评论
Suresh S
Suresh S 2018-4-13
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]);

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by