-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.2
-
sparc
-
solaris_2.6
Name: clC74495 Date: 11/25/99
I tried both on HP-UX 11.0 and SunOS 5.6 Generic_105181-14 sun4u sparc SUNW,Ultra-1.
Steps to reproduce.
1. Run Java2D demo.
appletviewer /opt/java1.2/demo/jfc/Java2D/Java2Demo.html
2. Click on "Clipping" tab.
3. Select "Objects", "Clip 1".
4. Then select "Rendering Quality" and "AlphaComposite".
I get the following exception while running Java2D demo.
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Width (0) and height (0) must be > 0
at java.awt.image.SampleModel.<init>(SampleModel.java:100)
at
java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:109)
at java.awt.image.Raster.createPackedRaster(Raster.java:598)
at java.awt.image.Raster.createPackedRaster(Raster.java:412)
at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:637)
at
sun.java2d.loops.LockableRaster.<init>(LockableRaster.java:135)
at
sun.java2d.loops.RasterOutputManager.convertFrom(RasterOutputManager.java:1473)
at
sun.java2d.loops.RasterOutputManager.performBinaryComposite(RasterOutputManager.java:1382)
at
sun.java2d.loops.RasterOutputManager.compositeSrcDst(RasterOutputManager.java:720)
at
sun.java2d.loops.RasterOutputManager.renderImage(RasterOutputManager.java:494)
at
sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2184)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1777)
at
sun.awt.image.BufferedImageGraphics2D.drawImage(BufferedImageGraphics2D.java:384)
at
sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:716)
at
sun.awt.image.BufferedImageGraphics2D.drawImage(BufferedImageGraphics2D.java:544)
at demos.Clipping.ClipAnim.drawDemo(ClipAnim.java:156)
at DemoSurface.paint(DemoSurface.java:308)
at javax.swing.JComponent.paintWithBuffer(JComponent.java:3701)
at
javax.swing.JComponent._paintImmediately(JComponent.java:3646)
at javax.swing.JComponent.paintImmediately(JComponent.java:3496)
at DemoSurface.paintImmediately(DemoSurface.java:280)
at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:365)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:191)
at
javax.swing.SystemEventQueueUtilities.processRunnableEvent(SystemEventQueueUtilities.java:366)
at
javax.swing.SystemEventQueueUtilities.access$0(SystemEventQueueUtilities.java:362)
at
javax.swing.SystemEventQueueUtilities$RunnableTarget.processEvent(SystemEventQueueUtilities.java:403)
at java.awt.Component.dispatchEventImpl(Component.java:2394)
at java.awt.Component.dispatchEvent(Component.java:2307)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:287)
at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:101)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
(Review ID: 98207)
======================================================================
- duplicates
-
JDK-4191004 ClipAnim sample throws IllegalArgumentException on win32 24 bit
-
- Closed
-