waitbar: java.awt.Frame.getFrames() returning empty object on Matlab R2025b
Mostrar comentarios más antiguos
Dear all,
I've just installed Matlab R2025b on my machine, and I'm migrating all the scripts that I've developed from R2023b to R2025b, but I'm facing a problem when I try to create a waitbar always on top of other windows with R2025b.
With previous R2023b I've used following commands, and it always worked properly:
waitperc = 0;
f = waitbar(waitperc,'Processing, please wait...','windowstyle', 'modal');
frames = java.awt.Frame.getFrames();
frames(end).setAlwaysOnTop(1);
Instead, using same commands with R2025b following error appears on command window:
"Array indices must be positive integers or logical values."
The problem is that the object "frames" produced with R2025b is empty, while with R2023b consists of what is reported on figure below.
Please, can anyone help me to solve this problem?
Best regards,
Alberto
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Environment and Settings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!