Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: index == 3
3 ビュー (過去 30 日間)
古いコメントを表示
When I run a Matlab code on R2012.a, Matlab shuts down itself to give the following message on Unix shell window:
------
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: index == 3 at javax.swing.AbstractButton.setDisplayedMnemonicIndex(Unknown Source) at com.mathworks.mwswing.MJUtilities.setMnemonicFromText(MJUtilities.java:345) at com.mathworks.fatalexit.FatalExitFrame.setTextAndMnemonicAndName(FatalExitFrame.java:526) at com.mathworks.fatalexit.FatalExitFrame.createButtonBar(FatalExitFrame.java:375) at com.mathworks.fatalexit.FatalExitFrame.createIconsAndLabelComponent(FatalExitFrame.java:303) at com.mathworks.fatalexit.FatalExitFrame.createContentPanel(FatalExitFrame.java:277) at com.mathworks.fatalexit.FatalExitFrame.initComponents(FatalExitFrame.java:270) at com.mathworks.fatalexit.FatalExitFrame.<init>(FatalExitFrame.java:180) at com.mathworks.fatalexit.FatalExitFrame$13.run(FatalExitFrame.java:775) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
--------
The above error occurs, only when my Matlab code tries to plot a figure. In addition, if I execute plotting commands line by line, the error sometimes (but not always) won't occur.
Using a laptop, I remotely connect to a desktop PC where Matlab is installed, and run Matlab on the PC using XQuartz (hence, not running Matlab on the laptop). The desktop PC has Linux (Fedora 14), and the laptop Mac OS X 10.8.5.
What is the problem here?
Best,
Taka
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!