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

조회 수: 1 (최근 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