1. Easiest way to make a list-like widget with drag and drop of items? stackoverflow.comThe simplest example I can think of are playlists, where you can drag a song to a different position in the list. I've done quite a few things with Swing but I've ... |
2. Drag Widgets in Composite/Canvas [SWT] coderanch.comHi there! As in the subject mentioned I want to drag around a widget (e.g. button) in my composite/canvas. My first approach: Add DragDetectListener to my button Add MouseMoveListener to my composite Everything is connected over a DragHandler-Object. When it receives an event from my DragDetectListener, it takes the coordinates from the MouseMove-Event and sets new coordinates in my button. As ... |