java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage

Coderanch | Phil Powell | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How do you crop an image in Java? (Swing / AWT / SWT forum at Coderanch)

    coderanch.com | 11 months ago
    java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage
  2. 0

    How do you crop an image in Java?

    Coderanch | 1 decade ago | Phil Powell
    java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage
  3. 0

    How do you crop an image?

    Oracle Community | 1 decade ago | 807599
    java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage

      at com.ppowell.tools.imagetools.ImageCropper.actionPerformed()
    2. com.ppowell.tools
      ImageCropper.actionPerformed
      1. com.ppowell.tools.imagetools.ImageCropper.actionPerformed(ImageCropper.java:180)
      1 frame