2

默认情况下,在 MATLAB 中禁用 Swing “非线程安全”警告。有谁知道这个警告的标识符是什么,以便我可以在 MATLAB 中启用它?

Yair Altman几年前发布过它,但我再也找不到它了。另见http://www.mathworks.ch/matlabcentral/newsreader/view_thread/129919

这个链接是关于线程安全和为什么它很重要http ://undocumentedmatlab.com/blog/matlab-and-the-event-dispatch-thread-edt/

4

1 回答 1

3

尝试以下一项或多项:

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

亚尔

于 2011-06-26T16:15:55.600 回答