MATLAB: Do I receive a Java exception when using the tab order editor of GUIDE on the GUI in MATLAB 6.5 (R13)

guiguidejavaMATLABordertab

I receive the following Java exception when using the tab order editor of GUIDE on my GUI in MATLAB 6.5 (R13):
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException
at com.mathworks.ide.layout.TabOrderEditor.getLabel(TabOrderEditor.java:523)
at com.mathworks.ide.layout.TabOrderEditor.updateChildList(TabOrderEditor.java:314)
at com.mathworks.ide.layout.TabOrderEditor.doActualCreation(TabOrderEditor.java:138)
at com.mathworks.ide.layout.TabOrderEditor.<init>(TabOrderEditor.java:120)
at com.mathworks.ide.layout.LayoutEditor.buildTabEditorWindow(LayoutEditor.java:1810)
at com.mathworks.ide.layout.LayoutEditor.showTabEditor(LayoutEditor.java:2965)
at com.mathworks.ide.layout.LayoutEditor.doCommand(LayoutEditor.java:1545)
at com.mathworks.mwt.command.MWCommandPanel.doCommand(MWCommandPanel.java:94)
at com.mathworks.ide.layout.LayoutArea.doCommand(LayoutArea.java:1113)
at com.mathworks.mwt.command.MWCommandCenter.doCommand(MWCommandCenter.java:220)
at com.mathworks.mwt.MWMenuItem.menuAction(MWMenuItem.java:512)
at com.mathworks.mwt.MWMenuItem.access$0(MWMenuItem.java:496)
at com.mathworks.mwt.MWMenuItem$MenuItemImpl.actionPerformed(MWMenuItem.java:526)
at java.awt.MenuItem.processActionEvent(Unknown Source)
at java.awt.MenuItem.processEvent(Unknown Source)
at java.awt.MenuComponent.dispatchEventImpl(Unknown Source)
at java.awt.MenuComponent.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Best Answer

This bug has been fixed for Release 14 (R14). For previous releases, read below for any possible workarounds:
This is a bug in MATLAB 6.5 (R13) when using the tab order editor of GUIDE on a GUI.
As a workaround, see the Related Solution listed below. It will help you reorder the objects using Handle Graphics.
Related Question