Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: index == 3
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!