// my code that calls upon n images in a directory to be placed on the JPanel
public void imageAdder(int n, String name){ BufferedImage myPic = null; fo
Look at custom classes in Java Swing, possibly useful links to get you started:
Java2s - DragandDropSupportforImages
DragImage.java DropImage.java DragImageEvent.java