Swing drag and drop

drag-and-drop, java, swing

Solution

Have a look at this tutorial.

Problem

I would like to implement a game board in swing (needs to be a table, though about either `jtable` or `gridlayout` etc ...) where I will be able to drag and drop a picture on to this game board and all the cells that the picture fell on will get a notification that they were chosen. Can anyone help with that? how do I get a couple of cells in a table know that an object was dropped on them?

Original source