MATLAB is not creating GUI

조회 수: 8 (최근 30일)
Kidus Hailemariam
Kidus Hailemariam 2016년 2월 9일
댓글: Kidus Hailemariam 2016년 2월 10일
Hi,
I am new to MATLAB and have started learning about it quite recently. I tried to create GUI using GUIDE, but an error keeps popping up on the command window. I tried finding a solution for it online, but couldn't find any fitting answer. Here is what the error looks like, and any help will be appreciated :
Error using com.mathworks.toolbox.matlab.guide.template.QuickStartPanel/getPreferredSize
Java exception occurred:
java.lang.NullPointerException
at com.sun.java.swing.plaf.windows.XPStyle.getTypeEnumName(Unknown Source)
at com.sun.java.swing.plaf.windows.XPStyle.getBorder(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$XPBorderValue.getXPValue(Unknown
Source)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$XPValue.createValue(Unknown Source)
at javax.swing.UIDefaults.getFromHashtable(Unknown Source)
at javax.swing.UIDefaults.get(Unknown Source)
at javax.swing.MultiUIDefaults.get(Unknown Source)
at javax.swing.UIDefaults.getBorder(Unknown Source)
at javax.swing.UIManager.getBorder(Unknown Source)
at javax.swing.border.TitledBorder.getBorder(Unknown Source)
at javax.swing.border.TitledBorder.getBorderInsets(Unknown Source)
at javax.swing.border.TitledBorder.getBorderInsets(Unknown Source)
at javax.swing.JComponent.getInsets(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at
com.jgoodies.forms.layout.FormLayout$ComponentSizeCache.getPreferredSize(FormLayout.java:1923)
at com.jgoodies.forms.layout.FormLayout$PreferredWidthMeasure.sizeOf(FormLayout.java:1845)
at com.jgoodies.forms.layout.Sizes$ComponentSize.maximumSize(Sizes.java:425)
at com.jgoodies.forms.layout.FormSpec.maximumSize(FormSpec.java:581)
at com.jgoodies.forms.layout.FormLayout.maximumSizes(FormLayout.java:1529)
at com.jgoodies.forms.layout.FormLayout.computeLayoutSize(FormLayout.java:1320)
at com.jgoodies.forms.layout.FormLayout.preferredLayoutSize(FormLayout.java:1158)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSize(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.preferredLayoutSize(Unknown
Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at
com.jgoodies.forms.layout.FormLayout$ComponentSizeCache.getPreferredSize(FormLayout.java:1923)
at com.jgoodies.forms.layout.FormLayout$PreferredWidthMeasure.sizeOf(FormLayout.java:1845)
at com.jgoodies.forms.layout.Sizes$ComponentSize.maximumSize(Sizes.java:425)
at com.jgoodies.forms.layout.FormSpec.maximumSize(FormSpec.java:581)
at com.jgoodies.forms.layout.FormLayout.maximumSizes(FormLayout.java:1529)
at com.jgoodies.forms.layout.FormLayout.computeLayoutSize(FormLayout.java:1320)
at com.jgoodies.forms.layout.FormLayout.preferredLayoutSize(FormLayout.java:1158)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
Error in guidetemplate (line 23)
size = quickstartpanel.getPreferredSize;
Error in guide (line 70)
guidetemplate;
  댓글 수: 2
Walter Roberson
Walter Roberson 2016년 2월 9일
Which operating system are you using, and which version of MATLAB?
Kidus Hailemariam
Kidus Hailemariam 2016년 2월 10일
I am using windows 7, and R2012a

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by