Duplicate :
|
When implementing a "move" operation using drag and drop, a call to setText("") causes the application to freeze on windows. If a move was successful (from one textfield to another for instance), the desired behavior would be to erase the text from the first textfield. The following code is taken from a TextField extension that implements DragSourceListener: public void dragDropEnd(DragSourceDropEvent dsde){ this.setText(""); //application hangs }
|