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!