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

Coderanch | Phil Powell | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

    coderanch.com | 9 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 | 10 years ago | Phil Powell
    java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage

    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