2
votes

By default Swing "not thread-safe" warnings are disabled in MATLAB. Does anyone know what is the identifier of this warning so that I could enable it in MATLAB?

Yair Altman posted about it years ago but I am not able find it any more. See also http://www.mathworks.ch/matlabcentral/newsreader/view_thread/129919

This link is about thread safety and WHY IT IS IMPORTANT: http://undocumentedmatlab.com/blog/matlab-and-the-event-dispatch-thread-edt/

1
why do you want to enable them? - jtahlborn

1 Answers

3
votes

Try one or more of the following:

com.mathworks.mde.desk.MLDesktop.getInstance.enableThreadSafeGetMethods()
com.mathworks.mwswing.MJUtilities.setThreadingChecksEnabled(true)
com.mathworks.mwswing.MJUtilities.setThreadSafetyWarningStackTraceSuppressed(false)

Yair