When opening GUI with GUIDE I get errors and a weird behavior
古いコメントを表示
I made a GUI with GUIDE, all was working fine until today when I was going to do some changes to it, although working fine when run from m file the GUIDE editor gives errors and it's very hard to modify and add more components, even matlab interface gets corrupted somehow, here's the error:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.toolbox.matlab.guide.palette.MObjectProxy.paintWithDefaultProxy(MObjectProxy.java:226)
at com.mathworks.toolbox.matlab.guide.palette.MObjectProxy.paint(MObjectProxy.java:200)
at com.mathworks.toolbox.matlab.guide.palette.LOControlWrapper.paint(LOControlWrapper.java:322)
at com.mathworks.toolbox.matlab.guide.LayoutArea.paintControlList(LayoutArea.java:2038)
at com.mathworks.toolbox.matlab.guide.LayoutArea.paint(LayoutArea.java:2072)
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.toolbox.matlab.guide.scroll.ScrollPanel$Scroller.paint(ScrollPanel.java:413)
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.toolbox.matlab.guide.scroll.ScrollPanel.paint(ScrollPanel.java:124)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
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 javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
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)
Matlab 2008b 32 bits, Windows 7 64 bits
I searched for an answer but no luck with solutions, rebuilding the GUI would be one but it's not a simple GUI.
回答 (2 件)
Bobane
2011 年 3 月 28 日
0 投票
Have experienced this in the past. Most of the time, it disappears when I restart Matlab. Not too sure what causes it though.
Sean de Wolski
2011 年 3 月 28 日
0 投票
I get the java errors all of the time when creating figures (usually with imshow) but they don't seem to hurt anything so I just clc them away!
(OSX R2009b 64bit)
2 件のコメント
Paulo Silva
2011 年 3 月 28 日
Sean de Wolski
2011 年 3 月 28 日
Sorry to hear that, and good luck. I finally scrapped GUIDE recently too. I would recommend downloading Matt Fig's GUI tutorial package, it makes the transition really painless.
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!