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

1 visualización (últimos 30 días)
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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Feb. de 2017
Place the uitable inside a uipanel and set the BorderType property of the uipanel
  1 comentario
Suresh S
Suresh S el 13 de Abr. de 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]);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by