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!