Fixing display of GUIDE GUI on R2025a

68 次查看(过去 30 天)
HpW
HpW 2025-8-19,21:09
编辑: S@m 2025-8-26,7:55
Hello
I have a complicated GUI that was made in GUIDE many versions ago and is still used regularly by many people. I haven't yet migrated to App Designer because the migration is not so simple, and although i am well aware that support for GUIDE has been on the way out for a while, the time needed to completely convert and debug the GUIDE GUI to get it to work in App Designer was prohibitive. I had planned to continue to edit the GUI if needed in R2024.
I just downloaded R2025a and the GUIDE GUI looks terrible....the GUI elemets are all incorrectly sized, fonts are all over the place, and its very hard to use. Is there any way to programatically fix these issues? I know in the past I used some edits to 'javax.swing.UIManager.setLookAndFeel' to make things look more consistent on PC and Mac, but this no longer seems to work
Other than just converting to App Designer, does anyone have any recomendations on how to get my GUIDE GUI, which works great in R2024, to look similar in R2025? I guess I could go through each GUI element and do some resizing etc, but this will obviously be very time consuming and was hoping there is a faster way to make it look "better"....
Thanks!

回答(1 个)

S@m
S@m 2025-8-26,7:02
编辑:S@m 2025-8-26,7:55
Hi,
Could you check if the information on legacy UI frameworks in the below link is relevant to your issue?
Third party technologies such as Java Swing and ActiveX are now legacy features. Hence in MATLAB R2025a, methods like "javax.swing.UIManager.setLookAndFeel" that previously worked with GUIDE GUI do not seem to be effective. Instead, MathWorks recommends using documented MATLAB functions provided in the below link as an alternative.
Additionally, there is a known issue related to UI text scaling in R2025a. You may look into the comments and answer reported in the below link.

类别

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

标签

产品


版本

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by