Can anyone direct me or tell me where to get starting on dragging an image with the mouse in Swing. I have looked at the 2D API and was wondering if there is another method for doing so. The 2D examples all move painted rectangles and not Images such as GIFS or JPEGS. Any suggestions??
hi Gregg........ if u can move painted rectangles with mouse u can move image too. All u need to do is paint the rectangle with image and move that painted rectangle. to do this u need to convert Image to BufferedImage and then use TexturePaint. abd fill the rectangle with TexturePaint. hope this will help u. herbert schildt