Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807587, 1 year ago
Width (0) and height (0) cannot be <= 0
via GitHub by mr-jingles
, 8 months ago
Width (0) and height (0) cannot be <= 0
via GitHub by kennyviperhk
, 2 years ago
Width (0) and height (0) cannot be <= 0
via Stack Overflow by MrThemaninthehouse
, 1 year ago
Width (-1) and height (-1) cannot be <= 0
via Oracle Community by 843806, 9 months ago
Width (-1) and height (137) cannot be <= 0
via Google Groups by Blanco, Jose, 7 months ago
Width (80) and height (0) cannot be <= 0
java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)	at java.awt.image.BufferedImage.(BufferedImage.java:250)	at test.MasterServerInternalFrame.saveComponentAsImage(MasterServerInternalFrame.java:203)	at test.MasterServerInternalFrame.jButton1ActionPerformed(MasterServerInternalFrame.java:197)	at test.MasterServerInternalFrame.access$300(MasterServerInternalFrame.java:32)	at test.MasterServerInternalFrame$4.actionPerformed(MasterServerInternalFrame.java:132)	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)	at java.awt.Component.processMouseEvent(Component.java:5100)	at java.awt.Component.processEvent(Component.java:4897)	at java.awt.Container.processEvent(Container.java:1569)	at java.awt.Component.dispatchEventImpl(Component.java:3615)	at java.awt.Container.dispatchEventImpl(Container.java:1627)	at java.awt.Component.dispatchEvent(Component.java:3477)	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)	at java.awt.Container.dispatchEventImpl(Container.java:1613)	at java.awt.Window.dispatchEventImpl(Window.java:1606)	at java.awt.Component.dispatchEvent(Component.java:3477)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)