MATLAB is not creating GUI
Show older comments
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 Comments
Walter Roberson
on 9 Feb 2016
Which operating system are you using, and which version of MATLAB?
Kidus Hailemariam
on 10 Feb 2016
Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!