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 Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by