java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

Oracle Community | 807551 | 1 decade ago
  1. 0

    IllegalStateException with BufferStrategy in Canvas

    Oracle Community | 1 decade ago | 807551
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  2. 0

    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0 - Jazz Forum

    jazz.net | 1 year ago
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  3. 0

    JTable to image?

    Oracle Community | 1 decade ago | 807587
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mini 3D FPS in an Applet Update 9 - Java-Gaming.org

    java-gaming.org | 6 months ago
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  6. 0

    java.lang.IllegalArgumentException when enabling opengl

    Oracle Community | 1 decade ago | 843799
    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Width (0) and height (0) cannot be <= 0

      at java.awt.image.DirectColorModel.createCompatibleWritableRaster()
    2. Java RT
      Canvas.createBufferStrategy
      1. java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
      2. sun.awt.Win32GraphicsConfig.createCompatibleImage(Win32GraphicsConfig.java:119)
      3. sun.awt.image.SunVolatileImage.getBufferedImage(SunVolatileImage.java:216)
      4. sun.awt.image.SunVolatileImage.getSurfaceDataSw(SunVolatileImage.java:122)
      5. sun.awt.windows.WVolatileImage.initAcceleratedBackground(WVolatileImage.java:112)
      6. sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:86)
      7. sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:77)
      8. sun.awt.windows.WVolatileImage.<init>(WVolatileImage.java:63)
      9. sun.awt.windows.WComponentPeer.createVolatileImage(WComponentPeer.java:471)
      10. java.awt.Component.createVolatileImage(Component.java:2684)
      11. java.awt.Component$BltBufferStrategy.createBackBuffers(Component.java:3194)
      12. java.awt.Component$BltBufferStrategy.<init>(Component.java:3180)
      13. java.awt.Component.createBufferStrategy(Component.java:2927)
      14. java.awt.Canvas.createBufferStrategy(Canvas.java:166)
      15. java.awt.Component.createBufferStrategy(Component.java:2867)
      16. java.awt.Canvas.createBufferStrategy(Canvas.java:141)
      16 frames
    3. Unknown
      Tetris.init
      1. Tetris.init(Unknown Source)
      1 frame
    4. Java RT
      Thread.run
      1. sun.applet.AppletPanel.run(AppletPanel.java:347)
      2. java.lang.Thread.run(Thread.java:536)
      2 frames