When I select insert new frame I get the following error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalArgumentException: Width
(-1) and height (-1) cannot be <= 0
at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknow
n Source)
at
sun.awt.Win32GraphicsConfig.createAcceleratedImage(Unknown
Source)
at
sun.awt.windows.WComponentPeer.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at
com.ranga.janimationshop.components.AnimationImage.init(AnimationImag
e.java:539)
at
com.ranga.janimationshop.components.AnimationImage.paint(AnimationIma
ge.java:500)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at
javax.swing.JComponent.paintWithOffscreenBuffer(Unknown
Source)
at
javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at
javax.swing.JComponent._paintImmediately(Unknown Source)
at
javax.swing.JComponent.paintImmediately(Unknown Source)
at
javax.swing.RepaintManager.paintDirtyRegions(Unknown
Source)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
n Source)
at
java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown
Source)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalArgumentException: Width
(-1) and height (-1) cannot be <= 0
at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknow
n Source)
at
sun.awt.Win32GraphicsConfig.createAcceleratedImage(Unknown
Source)
at
sun.awt.windows.WComponentPeer.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at java.awt.Component.createImage(Unknown Source)
at
com.ranga.janimationshop.components.AnimationImage.init(AnimationImag
e.java:539)
at
com.ranga.janimationshop.components.AnimationImage.paint(AnimationIma
ge.java:500)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown
Source)
at
javax.swing.JComponent.paintWithOffscreenBuffer(Unknown
Source)
at
javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at
java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at
sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at
sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at sun.awt.RepaintArea.paintComponent(Unknown
Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at
sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Window.dispatchEventImpl(Unknown
Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown
Source)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~