Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

IllegalArgumentException from SubstanceCoreUtilities.getBlankImage #129

Open
cmadsen opened this issue Mar 25, 2014 · 0 comments
Open

IllegalArgumentException from SubstanceCoreUtilities.getBlankImage #129

cmadsen opened this issue Mar 25, 2014 · 0 comments

Comments

@cmadsen
Copy link

cmadsen commented Mar 25, 2014

SubstanceCoreUtilities.getBlankImage throws IllegalArgumentException

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
at java.awt.GraphicsConfiguration.createCompatibleImage(GraphicsConfiguration.java:186)
at org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities.getBlankImage(SubstanceCoreUtilities.java:716)
at org.pushingpixels.substance.internal.utils.SubstanceImageCreator.getColorSchemeImage(SubstanceImageCreator.java:2315)
at org.pushingpixels.substance.api.SubstanceLookAndFeel.getDisabledIcon(SubstanceLookAndFeel.java:2447)
at javax.swing.AbstractButton.getDisabledIcon(AbstractButton.java:653)
at org.pushingpixels.substance.internal.utils.menu.MenuUtilities.paintMenuItem(MenuUtilities.java:721)
at org.pushingpixels.substance.internal.ui.SubstanceMenuUI.paintMenuItem(SubstanceMenuUI.java:341)
at javax.swing.plaf.basic.BasicMenuItemUI.paint(BasicMenuItemUI.java:475)
at javax.swing.plaf.basic.BasicMenuItemUI.update(BasicMenuItemUI.java:471)
at org.pushingpixels.substance.internal.ui.SubstanceMenuUI.__org__pushingpixels__substance__internal__ui__SubstanceMenuUI__update(SubstanceMenuUI.java)
at org.pushingpixels.substance.internal.ui.SubstanceMenuUI.__org__pushingpixels__substance__internal__ui__SubstanceMenuUI__container__update(SubstanceMenuUI.java)
at org.pushingpixels.substance.internal.ui.SubstanceMenuUI.update(SubstanceMenuUI.java)
at javax.swing.JComponent.paintComponent(JComponent.java:778)
at javax.swing.JComponent.paint(JComponent.java:1054)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant