To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
I have a palette of Buttons of which I want to drag & drop one onto a Spreadsheet component. This doesn't seem to work. Of course I wrapped the Spreadsheet in a DragAndDropWrapper - and I am able to drop (for examples) Excel files that I drag from the desktop. But if I drag a Button to the spreadsheet - nothing happens.
I made sure that the button can actually be dragged - i.e. I wrapped the button into a DragAndDropDropWrapper()
The "Drag side"
Button b =newButton("Drag me");DragAndDropWrapper wrapper=newDragAndDropWrapper(b);
//the drop sideSpreadsheet spreadsheet=...;DragAndDropWrapper wrapper =newDragAndDropWrapper(spreadsheet);
wrapper.setDropHandler(...someDropHandler);Button dropOnMe =newButton("Drop a component");DragAndDropWrapper dw =newDragAndDropWrapper(dropOnMe);
Using that I can drop on the "DropOnMe" Button, but not on the spreadsheet. Am I doing anything wroing here?