Java - AWT/Swing
If the drag and drop does not function by an empty table, then you should try it with the following code:
table.setFillsViewportHeight(true);