This is not possible with pure Java. Java gives you some level of control over the frame (window), but it does not give you the API for the toolbar (I assume you mean the bar that corresponds to the frame you create in the launch bar?). You can create a drop point for something inside your frame as a component (for example, JPanel), so if you drag stuff onto it, you will get dnd events, but there is no component that you can access which cards in the panel Launch or Record frame in it, so there is no need to add DropTarget to.
source share