MATLAB is not creating GUI

9 visualizaciones (últimos 30 días)
Kidus Hailemariam
Kidus Hailemariam el 9 de Feb. de 2016
Comentada: Kidus Hailemariam el 10 de Feb. de 2016
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 comentarios
Walter Roberson
Walter Roberson el 9 de Feb. de 2016
Which operating system are you using, and which version of MATLAB?
Kidus Hailemariam
Kidus Hailemariam el 10 de Feb. de 2016
I am using windows 7, and R2012a

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by