I have set up a Drag and Drop feature in my application using the java.awt.dnd package. It all works well but for the drag image.. It just won't appear on the screen..
The piece of code covering the drag image:

Java Code:
public class DragListener implements DragGestureListener {

    public DragListener(Component component) {
        this.component = component;

    public void dragGestureRecognized(DragGestureEvent dge) {
        BufferedImage image = null;
        try {
            image = ImageIO.read(new File("images/bin.png"));
        } catch (IOException e) {
        dge.startDrag(new Cursor(Cursor.CROSSHAIR_CURSOR), image, new Point(0, 0), new TransferComponent(component), new DragSourceAdapter() {

            public void dragEnter(DragSourceDragEvent e) {
                // here goes some animation
    private Component component;