Can use uihtml in GUI component such as text or panel ??

조회 수: 3 (최근 30일)
galaxy
galaxy 2020년 3월 18일
답변: galaxy 2020년 3월 19일
I want to add HTML code in GUI.
But as I know, uihtml can use with figure only.
Do you know other way?
  댓글 수: 2
Mohammad Sami
Mohammad Sami 2020년 3월 18일
편집: Mohammad Sami 2020년 3월 18일
I am not sure what is the issue. A uifigure can be divided using uigridlayout. You can place uihtml inside one or more of the grid.
If you don't want to use gridlayout you can also position the various element by setting the position property.
galaxy
galaxy 2020년 3월 18일
Thank you for your feedback.
Does uigridlayout can use in GUI ??? I think it only use in App, right?

댓글을 달려면 로그인하십시오.

채택된 답변

galaxy
galaxy 2020년 3월 19일
I investigated, and we can use java as following
hfig = handles.figure1; % existed figure in GUI
je = javax.swing.JEditorPane('text/html', HTML_str);
jp = javax.swing.JScrollPane(je);
[hcomponent, hcontainer] = javacomponent(jp, [], handles.figure1.Children); % Panel childrent in existed GUI
set(hcontainer, 'units', 'normalized', 'position', [0,0,1,1]);
I ran and it was OK.
Thank you

추가 답변 (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