droppable UI element in Java Swing
I want to develop an application in Java Swing. The application I am going to develop is an application for developing other applications. I want my application to include a button which also acts as a drag and drop UI element. For example, I want my application to include a button for adding a picture. There are 4 buttons of different pictures. If a user wants to add a picture he can either click on one of these buttons and that picture will be added somewhere on the screen or dragging this button and drop it and that picture will be added where he dropped that button.
Could anyone please tell me…
1. If I can develop an application which includes Drag and Drop UI element if I develop it in Java Swing
2. If a button (or other UI element) can act as both a button and a drag and drop element if I develop my application in Java Swing
Thanks in advanced