Matlab version:
Matlab R14SP1

Operating system:
Windows XP SP3

Error Shown:

Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: -2
at com.mathworks.mwt.MWGroupbox.initColors(MWGroupbox.java:571)
at com.mathworks.mwt.MWGroupbox.bufferedPaint(MWGroupbox.java:969)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:353)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.mathworks.mwt.MWPanel.bufferedPaint(MWPanel.java:324)
at com.mathworks.mwt.MWPanel.paint(MWPanel.java:353)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
....


See this screenshot:


Problem caused by:
There is a bug in MATLAB 7.0 (R14) in the way that GUIDE handles nonstandard Windows XP color schemes. (funny isn't it?)

Solution:
Use standard Windows XP theme (blue, green, silver or classic theme). (another funny solution).


This bug has been fixed in Release 14 Service Pack 3 (R14SP3)

0 komentar: