Does anyone know a way to change the window title name on my guide created GUI figure? I created an application for my company and I was able to change the window figure icon using the following code:
javaFrame = get(hObject,'JavaFrame');
Now I would like to be able to also change the gui figure window title.
javaFrame.setTitle('Water Quality Data Base'));
However this did not work with the following error:
No appropriate method, property, or field setTitle for class
Error in water_Quality_DB>water_Quality_DB_OpeningFcn (line
javaFrame.setTitle('Water Quality Data Base');
Error in gui_mainfcn (line 221)
feval(gui_State.gui_OpeningFcn, gui_hFigure, ,
Error in water_Quality_DB (line 42)
I do not want to do a File > Save as in guide to rename the .m and .fig files because I specifically want the title to be 'Water Quality Data Base' and it is not possible to rename a file using a string with spaces. I do not want to use underscores.
Is there any way to accomplish what I want to do?