RE: Drag & Drop with ListView

By the way, has anyone tried to drag & drop a node from a listview to a
treeview? I can drag a node from the listview. But when I drop it into
the treeview, how can I find out which node of the treeview that I drop
into? Any help will be greatly appreciated.
Tien Wang
Indus Consultancy Services
http://www.indcon.com
Phone 201.261.3100 x233
Fax 201.261.1399
E-mail : [email protected]
Ulrich:
Try to change the state of the DVNodeText of the list view to FS_DRAG.
For example,
<MyListView.DVNodeText>.state = FS_DRAG. This may solve your problem.
Hope this helps.
Tien Wang
Indus Consultancy Services
http://www.indcon.com
Phone 201.261.3100 x245
Fax 201.261.1399
E-mail : [email protected]
-----Original Message-----
From: owner-forte-users [SMTP:[email protected]]
Sent: Thursday, October 02, 1997 2:07 PM
To: 'forte users'
Subject: Drag & Drop with ListView
Hi all,
I am currently implementing a drag and drop between a listview and a
treeview in Forte 3E.
The TreeView has an IsDraggable attribute that allows me to drag treeview
items while also highlighting the selected node. Unfortunately this isn't
the case with the ListView control. If I put the ListView in a draggable
state I can't see which node was selected.
Can anyone supply a solution to draggiing from a ListView while also
highlighting the node being dragged?
Ulrich Lalk
[email protected]

Ulrich:
Try to change the state of the DVNodeText of the list view to FS_DRAG.
For example,
<MyListView.DVNodeText>.state = FS_DRAG. This may solve your problem.
Hope this helps.
Tien Wang
Indus Consultancy Services
http://www.indcon.com
Phone 201.261.3100 x245
Fax 201.261.1399
E-mail : [email protected]
-----Original Message-----
From: owner-forte-users [SMTP:[email protected]]
Sent: Thursday, October 02, 1997 2:07 PM
To: 'forte users'
Subject: Drag & Drop with ListView
Hi all,
I am currently implementing a drag and drop between a listview and a
treeview in Forte 3E.
The TreeView has an IsDraggable attribute that allows me to drag treeview
items while also highlighting the selected node. Unfortunately this isn't
the case with the ListView control. If I put the ListView in a draggable
state I can't see which node was selected.
Can anyone supply a solution to draggiing from a ListView while also
highlighting the node being dragged?
Ulrich Lalk
[email protected]

Similar Messages

  • Drag & drop with Safari

    I use a language site that needs the drag and drop gesture to match words with their meaning. When I try this on ipad's safari, it scrolls the page instead. Is there a way to turn off the scrolling so Safari responds to the drag and drop gesture?

    First, you aren't speaking to Apple here. This is strictly a user-user forum set up to provide technical support. If you want to make the request to Apple then do it via the iPad Feedback Form — http://www.apple.com/feedback/ipad.html
    First, though, you may stop and wonder about how Drag & Drop is already working in iOS in any number of apps, which, by the way, does include Safari. It may not work on some particular site that you're interested in, but certainly does in others.

  • Manual sync drag & drop with many playlists

    Ok I do not want to automatically sync my itunes with either my iPod or iPhone - end of story. I have 1000's of songs. I also organize my music by creating playlists, not just by artist but also DJ playlists. I have more single songs then entire albums. For years I've found the drag & drop highly irritating as it's the only way - that I know - to put a playlist manually on external devices. What I do instead is use a bullet or spaces before my playlist so they're at the top of the iTunes list but this is very tedious and and time consuming. I then have to remove the bullets/spaces once I've finished.
    Is there something I'm missing here? With every update of iTunes I'm hoping something as simple as "sync selected playlist to external device" in some form will show up. What's the story? Why is something so convenient and simple not available?

    Agreed!!! If I'm missing something here please let me know but to manually drag and drop play lists is not an option for me. I arrange all my music in play lists (as mentioned above). I need a way of safely backing up the lists in case they get lost / damaged / accidentally erased (I can't tell you how frustrating it is to hit the delete button by mistake - to lose a play list when all I wanted to do was delete a single track).......
    Currently my ipod is my only way off backing up the lists. I'm also constantly updating these lists, so to manually go and back up each play list would take weeks.....
    Backing up the data list (XML) wont do either. I need a way of backing the play list and actual tracks that are included in the list. I know a lot of people who share this concern.
    Apple, please help....

  • Doing drag drop with HandPointers

    As first seen on this thread:
    http://social.msdn.microsoft.com/Forums/en-US/6b8d6251-c59a-46c7-9da8-b912cb16dfab/kinectregionaddhandpointerhandler?forum=kinectv2sdk
    Take a look at http://1drv.ms/VQxR00
    I've zipped up a DragDropElement implementation and a DragDropSample page.
    You can place those 3 files in ControlsBasics-WPF in the Pages folder. Then add the following to the SampleDataSource -- put it near the KinectPointerPointSample reference in SampleDataSource.cs:
                group1.Items.Add(
                         new SampleDataItem(
                             "Group-1-Item-6",
                             "Drag Drop",
                             string.Empty,
                             SampleDataSource.lightGrayImage,
                             "Shows how to implement a DragDropElement",
                             itemContent,
                             group1,
                             typeof(DragDropSample)));
    Would love feedback about this.
    Thanks, Rob
    Rob Relyea [MSFT] http://twitter.com/rrelyea
    Rob Relyea [MSFT] http://twitter.com/rrelyea

    This is a nice example of how to move a rectangle around a Canvas in Kinect...
    But how can it interact with other objects? In my case ones that have AllowDrop="True"?
    For example: If I put your DragDropElement around an Image then shift it up to a Canvas that is subscribed to the Drop event nothing is fired upon letting go.
    The mouse equivalent of:
    private void ImagePreview_MouseDown(object sender, MouseButtonEventArgs e)
    DragDrop.DoDragDrop((DependencyObject)sender, ((Image)sender).Source, DragDropEffects.Copy);
    private void Canvas_Drop(object sender, DragEventArgs e)
    foreach (var format in e.Data.GetFormats())
    ImageSource imageSource = e.Data.GetData(format) as ImageSource;
    if (imageSource != null)
    // Do something...
    Thanks,
    Brad

  • Drag & Drop with Fdev6iR2 on Linux / Adding object to an object group

    Hi all
    I experienced a very annoying bug in Forms Developer 6i Release II for Linux when I tried to add a Object to an Object group.
    The drag & drop simply doesn't work and there seems to be no way to work around this.
    Has anybody an idea whether there's another way to add an object to an objectgroup or what could cause this error?
    I'm using KDE 1.1.2-48 on XFree86 4.0.1-1 with Motif WM 1.2.4-3glibc installed, maybe this helps one of you...
    Thanks very much...
    Nik

    drag object using center mouse button.I think
    it will work.don't set caps lock on.
    --viji                                                                                                                                                                                   

  • Simple drag&drop with handler doesn't work in Edge?

    Hi all!
    I made this very simple example of Drag&Drop in Edge: http://www.terredainventare.it/simpledrag/simpledrag.html using Jquery Ui http://docs.jquery.com/UI/Draggable.
    I try to use the JQueryUi "handle" property that makes you drag an object restricting drag click on only one element but it doesn't work.
    Here's the code I've put in Edge onCompositionReady:
    sym.$("drag").draggable({ handle:"handler" });
    Of course my two Div-elements are called "drag" and "handler". Now the drag works only on the "wrong" element and not on the "handle".....
    Here's the Adobe Edge files: http://www.terredainventare.it/simpledrag/web.zip
    Many thanks in advance for your help!
    Davide

    So, on stage i add a rectangle named "drag" and i try this code:
    yepnope({
                nope:[
                'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js',
                'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css'
                complete: init
    function init() {
             //$("#Stage_drag").draggable();
             //$(sym.lookupSelector("drag")).draggable();
             sym.$("drag").draggable();
    3 lines work: $("#Stage_drag").draggable() or $(sym.lookupSelector("drag")).draggable() or sym.$("drag").draggable()
    And css file is not required.
    Well, your dowload link is not perfect but i download your folder. See you later.
    There is a tutorial: a movie tutorial (adobe tv). Mix it baby! Extending Edge Animate 02:57
    They use: yepnope (both, callback)
    yepnope({
         both: ['jquery-ui.min.js',
                   'jquery-ui.css'
         callback: function(){sym.$("drag").draggable()}
    I will send you your files tomorrow (private message).

  • Permanent list of duplicates using drag & drop with iPhoto 11

    Every time I drag and drop a photo into iPhoto 11 from a website or other source, I'm asked if I want to also add every other photo I've ever dragged and dropped in. I can opt not to import duplicates, but is there a way to clear out or avoid this ever-growing list?

    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder.

  • Qosmio x870 - Drag & drop with alt-tab not possible using touchpad

    Hello everyone,
    I have a problem with my Qosmio x870 and Synaptics touchpad drivers on Win7 64bit.
    They will not allow me to drag and drop between applications.
    As soon as I press Alt-Tab while dragging a file to switch to another application, dragging instantly stops.
    I'm using official & latest (15.3.41.7) Toshiba touchpad drivers from here http://goo.gl/pKHAI
    I tried installing generic Synaptics drivers and they don't have such a problem.
    With them, everything works fine with drag and drop,
    however, their implementation of two finger scrolling is really buggy and more than half the time it doesn't work so I can't use those.
    Does anyone know if this bug will be fixed and when?
    Any help? Thanks!

    Hi,
    I don't have "Advanced" tab in Mouse settings in control panel. Is there something i need to install in adition to Toshiba Synaptics drivers?
    I also tried changing every available setting in Synaptics drivers settings, but no change :(
    About Synaptics generic driver: Yes, I chose that one, but as I said, it's really buggy with two finger scroll, so I reverted back to Toshiba ones.

  • Reordering drag drop with manual application

    Here's some pseudo MXML of what I'm dealing with:
    <vbox id=1>
         <box/>
         <box/>
         <box/>
    </vbox>
    <vbox id=2>
         <box/>
    </vbox>
    I've applied manual drag event listeners to everyone and can easily drag and drop from one vbox to another. Where it goes awry is when I try to reorder the boxes. What happens is the vbox container picks up all the drag events (enter,over,etc) but none of the children do. I know a lot of the canned components like list and datagrid allow for reordering but for some reason this manual approach (which is necessary) isn't working.
    I've tried adding mouseEnabled=true on all the boxes to no avail. I've spent a day scouring forums and documentation to no avail.
    Any direction someone could point me in would be very beneficial.

    Kind of a bump, but worth adding - Ever since ActionScript 2 in Flash you've had something called a hitTest that allows you to basically do collision logic. So, if I drag one of my child <mx:Box> items around I can have a logic trap that says: 1. Which <mx:Vbox> parent container does this hitTest belong to? 2. Which child <mx:Box> does the freshly dropped <mx:Box> have a positive hitTest on. In that sense you can figure out what the user intended to do based on who he's dropping things on (or she of course).
    Whats missing from the built in FLEX Drag classes (at least that I've found so far) is the ability to do collision detection not only on the parent container but with the child elements inside  that container. Right now, it blocks ANY flavor of the drag and drop events to child objects. I'm not sure if that's bubbling, is it? Either way. I can do it the old way with hitTest collision checks but I'm sooooo close to being able to use the native DragEvents. Plus, that means I'll  have to write a class to handle data arrays being moved from one place to another which is just duplicating what's "almost perfect".
    Just point me in a direction guys, anything is better than the brick wall I'm stuck behind right  now.

  • Drag & Drop with ASOC

    I am still trying to learn the nuances of ASOC and just cannot seem to figure out drag and drop. For learning purposes, all I want to do is drop a file on an object and have a display dialog show the path to the file(s). Anyone have any experience with this? Thanks.

    The code is based solely on the MacScripter example and I am grateful to have found that much help. The object is an NSBox. The handler is in the subclass, but it seems as though the message is not being sent when dragging is initiated/completed. My code currently look like this:
    on draggingEntered_(sender)
    display dialog "Dragging Entered"
    set theFiles to sender's draggingPasteboard()
    set theOptions to {NSPasteboardURLReadingFileURLsOnlyKey:1}
    return theFiles's canReadObjectForClassesoptions({current application's |NSURL|}, theOptions)
    end draggingEntered_
    on performDragOperation_(sender)
    -- Get the file paths
    set theFiles to sender's draggingPasteboard()
    set theOptions to {NSPasteboardURLReadingFileURLsOnlyKey:1}
    set theURLs to theFiles's readObjectsForClassesoptions({current application's |NSURL|}, theOptions)
    display dialog theURLs
    -- return true
    end performDragOperation_

  • CS 5.0: inserting graphic via drag&drop with import options?

    Hi,
    is there a shortcut to show the import settings dialog window by dragging a graphic from outside of InDesign?
    Thanks.
    Carlos
    using win7/64, Adobe CS 5.0

    "Peter Spier" schrieb am 04.05.2012 um 14:26 Uhr:
    No tas far as I know, and dragging from outside, except from Finder, Bridge or Explorer is the equivalent of pasting, not importing.
    Okay, thank you!

  • Drag Drop List to List

    I have a source list and a destination list. I want to submit
    the contents of the destination list via my sendformdata function
    along with the other formitems.
    Here are my source/dest lists.
    <mx:VBox dropShadowEnabled="true">
    <mx:Label text="Available Loops"/>
    <mx:List id="srclist" width="300" height="150"
    allowMultipleSelection="true"
    dragEnabled="true" dropEnabled="true"
    dragMoveEnabled="true" labelField="category"
    dataTipFunction="myLabelFunc" showDataTips="true"
    alternatingItemColors="[#ece8ff, #ffffff]">
    </mx:List>
    </mx:VBox>
    <mx:VBox>
    <mx:Label text="Patched Loops"/>
    <mx:List alternatingItemColors="[#ece8ff, #ffffff]"
    id="destlist" width="200" height="150"
    allowMultipleSelection="true"
    dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
    labelField="category"/>
    </mx:VBox>
    user drags one or more items from the source to dest list.
    This works great.
    Now I need to pass the dropped/selected data in destlist to
    myobj, along with the other form items. How?
    <mx:Script>
    <![CDATA[
    private function sendFormdata():void {
    var myobj:Object = new Object();
    myobj.name = myname.text;
    myobj.email = myemail.text;
    myobj.entry = myentry.text;
    myobj.entrycomment = myentrycomment.htmlText;
    myobj.selectedcats= destlist.????
    cfdataInsert.addData({user:myobj})
    ]]>
    </mx:Script>
    Second part of my question is that I want the value of
    myobj.selectedloops to be a comma separated list of categoryid
    numbers (e.g. 1,3,5). My query, that populates the source list via
    the remoteobject contains categoryid,category, and description
    columns. I currently display the category in the labelField of the
    list, but I need to submit the categoryid to the DB.
    data comes from...
    <mx:RemoteObject
    id="cfdata" showBusyCursor="true"
    destination="ColdFusion"
    source="da8.Constellation.entries">
    <mx:method name="getCats" result="getCats_result(event)"
    />
    </mx:RemoteObject>
    getCats ColdFusion function...
    <cffunction name="getCats" access="remote"
    returntype="query">
    <cfset var CatData = "">
    <cfquery name="CatData" datasource="#DSN#">
    select categoryid,category,description
    from Categories
    order by category
    </cfquery>
    <cfreturn CatData />
    </cffunction>
    and then this function populates the srclist with the
    data....
    public function getCats_result(event:ResultEvent):void
    srclist.dataProvider = event.result as ArrayCollection;
    destlist.dataProvider =[];
    How do I pass the resulting destlist categoryids to
    myobj.selectedcats ?
    I don't know how the ArrayCollection organizes the query and
    how to reference the categoryid in the srclist and destlists.
    I'd appreciate any help.
    Thanks,
    Don

    SAP has lots of demo reports for drag and drop functionalities. Please check [Drag & Drop With the ALV Grid Control|http://help.sap.com/saphelp_erp2004/helpdata/en/22/a3f5fbd2fe11d2b467006094192fe3/content.htm]

  • Effect on Sprite breaks drag&drop mechanics

    Hello,
    I've a problem with applying effects to a number of SpriteVisualElements.
    I had set up a grid of said sprites and could drag and drop them around using the startDrag() and stopDrag() methods.
    I then decided to use effects to somehow animate these sprites when I click or drag them, and chose to play the effects in the handler of the MouseEvent.MOUSE_UP event.
    Things still work, but.... some effects break the drag&drop operation.
    The first time I drag or click the sprites everything works fine, but when I try to drag them again after the effect has been played once they won't drop. I can see the sprites move along with the mouse cursor as i drag them, but when I release the mouse button the sprites jump back to their starting position instead of dropping where I've just dragged them.
    This happens only on individual sprites once the effect has been played on them a first time. After that the effect still plays each time (meaning that the MOUSE_UP event is dispatched), but they won't drop.
    I'm also tracking the coordinates of the sprites as they are dragged, using a label I update through the MOUSE_MOVE event. The sprites' coordinates update normally the first time I drag&drop them, but then, after the effect is played for the first time, the coordinates won't update either.
    This only happens with effects that affect the sprites' appearance: s:Animate (scaleX, scaleY), s:Rotate, s:Scale.
    The only one that seems to work without causing any problem is s:Move. Don't understand why.
    Does anyone have any idea?
    Thanks a lot

    Oh, I see. Thanks.
    So... i should use the "normal" flex drag&drop.
    There is just a problem, the documentation says:
    The following Flex features are not supported in mobile applications:
    No support for drag-and-drop operations
    http://help.adobe.com/en_US/flex/mobileapps/WSf3db6597adcd110e19124fcb12ab3a1c319-8000.htm l#WSca1097f1363f276f-8bfd51512ba1a8112c-8000
    I had to work my way around this limitation one time in the past. I assumed that those lines referred to list-based controls only and I figured that maybe I could manually implement drag&drop with my custom components, which I did. It worked quite well, but unfortunately it also made the mouse cursor appear beneath my fingertip. It was very annoying and I couldn't find a way to get rid of it.
    I also thought about implementing the "flex" drag&drop using TouchEvents instead of MouseEvents (maybe that was the cause of the problem, I thought), but the DragManager.doDrag() method requires a MouseEvent as argument.... and that's when I decided to switch to the more basic .startTouchDrag() and stopTouchDrag() methods.
    Now, is there something else I could try?
    How do other people (more experienced than me) implement their drag&drop mechanics, for starters?
    Thank you :-)

  • Problems with ListViews Drag and Drop

    I'm surprised that there isn't an Active X control that can do this more
    easily? Would
    be curious to find out if there is - although we aren't really embracing the
    use of
    them within Forte because it locks you into the Microsoft arena.
    ---------------------- Forwarded by Peggy Lynn Adrian/AM/LLY on 02/03/98 01:33
    PM ---------------------------
    "Stokesbary, Michael" <[email protected]> on 02/03/98 12:19:52 PM
    Please respond to "Stokesbary, Michael" <[email protected]>
    To: "'[email protected]'" <[email protected]>
    cc:
    Subject: Problems with ListViews Drag and Drop
    I am just curious as to other people's experiences with the ListView
    widget when elements in it are set to be draggable. In particular, I am
    currently trying to design an interface that looks a lot like Windows
    Explorer where a TreeView resides on the left side of the window and a
    ListView resides on the right side. Upon double clicking on the
    ListView, if the current node that was clicked on was a folder, then the
    TreeView expands this folder and the contents are then displayed in the
    ListView, otherwise, it was a file and it is brought up in Microsoft
    Word. All this works great if I don't have the elements in the ListView
    widget set to be draggable. If they are set to be draggable, then I am
    finding that the DoubleClick event seems to get registered twice along
    with the ObjectDrop event. This is not good because if I double click
    and the current node is a folder, then it will expand this folder in the
    TreeView, display the contents in the ListView, grab the node that is
    now displayed where that node used to be displayed and run the events
    for that as well. What this means, is that if this is a file, then Word
    is just launched and no big deal. Unfortunately, if this happens to be
    another directory, then the previous directory is dropped into this
    current directory and a recursive copy gets performed, giving me one
    heck of a deep directory tree for that folder.
    Has anybody else seen this, or am I the only lucky one to experience.
    If need be, I do have this exported in a .pex file if anybody needs to
    look at it more closely.
    Thanks in advance.
    Michael Stokesbary
    Software Engineer
    GTE Government Systems Corporation
    tel: (650) 966-2975
    e-mail: [email protected]

    here is the required code....
    private static class TreeDragGestureListener implements DragGestureListener {
         public void dragGestureRecognized(DragGestureEvent dragGestureEvent) {
         // Can only drag leafs
         JTree tree = (JTree) dragGestureEvent.getComponent();
         TreePath path = tree.getSelectionPath();
         if (path == null) {
              // Nothing selected, nothing to drag
              System.out.println("Nothing selected - beep");
              tree.getToolkit().beep();
         } else {
              DefaultMutableTreeNode selection = (DefaultMutableTreeNode) path
                   .getLastPathComponent();
              if (selection.isLeaf()) {
              TransferableTreeNode node = new TransferableTreeNode(
                   selection);
              dragGestureEvent.startDrag(DragSource.DefaultCopyDrop,
                   node, new MyDragSourceListener());
              } else {
              System.out.println("Not a leaf - beep");
              tree.getToolkit().beep();
    }

  • Issue with Drag/Drop of multiple rows from ListView

    I am working on a sample application with 2 list views i.e. players and team, and implement drop and drop such that players can be dropped from one list view to the other. Everything is working as expected when there is single selection model is enabled on the source list view. However, if I enabled Multiple selection model and drag 2 or more rows from source list view to target list view, seeing the following exception after the drop is completed.
    Exception:
    java.lang.IllegalArgumentException: Only serializable objects or ByteBuffer can be used as data with data format [subListPlayers]
      at com.sun.javafx.tk.quantum.QuantumClipboard.putContent(QuantumClipboard.java:513)
      at javafx.scene.input.Clipboard.setContent(Clipboard.java:230)
    1) What should be the DataFormat used in order to be able to drag and drop multiple rows? Looks like we do not have for Object type, so I have created the following one which does not solve the problem.
       private DataFormat dataFormat = new DataFormat("subListPlayers");
    2) I have made changes to support serialization on the data object which also does not seem to solve the issue. Tried by implementing Serializable interface as well as by implementing Externalize interface.
    Can someone please guide if there is an easy way to implement this behavior?
    Code:
    public class Player
       private String name;
       public Player(String name)
          this.name = name;
       public String getName()
          return name;
       public void setName(String name)
          this.name = name;
       @Override
       public boolean equals(Object o)
          if (this == o) return true;
          if (o == null || getClass() != o.getClass()) return false;
          Player player = (Player) o;
          if (name != null ? !name.equals(player.name) : player.name != null) return false;
          return true;
       @Override
       public int hashCode()
          return name != null ? name.hashCode() : 0;
    public class JavaFXDnDApplication extends Application
       private static final ListView<Player> playersListView = new ListView<Player>();
       private static final ObservableList<Player> playersList = FXCollections.observableArrayList();
       private static final ListView<Player> teamListView = new ListView<Player>();
       private static final GridPane rootPane = new GridPane();
       private DataFormat dataFormat = new DataFormat("subListPlayers");
       public static void main(String[] args)
          launch(args);
       @Override
       public void start(Stage primaryStage)
          primaryStage.setTitle("Drag and Drop Application");
          initializeComponents();
          initializeListeners();
          buildGUI();
          populateData();
          primaryStage.setScene(new Scene(rootPane, 400, 325));
          primaryStage.show();
       private void initializeListeners()
          playersListView.setOnDragDetected(new EventHandler<MouseEvent>()
             @Override
             public void handle(MouseEvent event)
                System.out.println("setOnDragDetected");
                Dragboard dragBoard = playersListView.startDragAndDrop(TransferMode.MOVE);
                ClipboardContent content = new ClipboardContent();
    //            content.putString(playersListView.getSelectionModel().getSelectedItem().getName());
                content.put(dataFormat, playersListView.getSelectionModel().getSelectedItems());
                dragBoard.setContent(content);
          teamListView.setOnDragOver(new EventHandler<DragEvent>()
             @Override
             public void handle(DragEvent dragEvent)
                dragEvent.acceptTransferModes(TransferMode.MOVE);
          teamListView.setOnDragDropped(new EventHandler<DragEvent>()
             @Override
             public void handle(DragEvent dragEvent)
    //            String player = dragEvent.getDragboard().getString();
    //            ObservableList<Player> player = (ObservableList<Player>) dragEvent.getDragboard().getContent(dataFormat);
                String player = dragEvent.getDragboard().getString();
                teamListView.getItems().addAll(new Player(player));
                playersList.remove(new Player(player));
                dragEvent.setDropCompleted(true);
       private void buildGUI()
    //      rootPane.setGridLinesVisible(true);
          rootPane.setPadding(new Insets(10));
          rootPane.setPrefHeight(30);
          rootPane.setPrefWidth(100);
          rootPane.setVgap(20);
          rootPane.setHgap(20);
          rootPane.add(playersListView, 0, 0);
          rootPane.add(teamListView, 1, 0);
       private void populateData()
          playersList.addAll(
                new Player("Adam"), new Player("Alex"), new Player("Alfred"), new Player("Albert"),
                new Player("Brenda"), new Player("Connie"), new Player("Derek"), new Player("Donny"),
                new Player("Lynne"), new Player("Myrtle"), new Player("Rose"), new Player("Rudolph"),
                new Player("Tony"), new Player("Trudy"), new Player("Williams"), new Player("Zach")
          playersListView.setItems(playersList);
       private void initializeComponents()
          playersListView.setPrefSize(250, 290);
          playersListView.setEditable(true);
          playersListView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
          playersListView.setCellFactory(new Callback<ListView<Player>, ListCell<Player>>()
             @Override
             public ListCell<Player> call(ListView<Player> playerListView)
                return new ListCell<Player>()
                   @Override
                   protected void updateItem(Player player, boolean b)
                      super.updateItem(player, b);
                      if (player != null)
                         setText(player.getName());
          teamListView.setPrefSize(250, 290);
          teamListView.setEditable(true);
          teamListView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
          teamListView.setCellFactory(new Callback<ListView<Player>, ListCell<Player>>()
             @Override
             public ListCell<Player> call(ListView<Player> playerListView)
                return new ListCell<Player>()
                   @Override
                   protected void updateItem(Player player, boolean b)
                      super.updateItem(player, b);
                      if (player != null)
                         setText(player.getName());

    Yeah, this is a pain. I filed https://javafx-jira.kenai.com/browse/RT-29082 a while back. Go ahead and vote for it if you are inclined...
    I think the issue in your case is that the observable list provided by MultipleSelectionModel.getSelectedItems() is not Serializable. So even if you make your Player class Serializable, the list itself isn't. The first thing I would try, I think, is to make Player implement Serializable and then pass in an ArrayList instead of the observable list. So you can do
    content.put(dataFormat, new ArrayList<Player>(playersListView.getSelectionModel().getSelectedItems()));
    and
    List<Player> player = (List<Player>) dragEvent.getDragboard().getContent(dataFormat);
    teamListView.getItems().addAll(player);
    If that doesn't work, a workaround is just to store the "dragged list" in a property:
    final ListProperty<Player> draggedPlayers = new SimpleListProperty<Player>();
    // Drag detected handler:
    content.putString("players");
    draggedPlayers.set(playersListView.getSelectionMode().getSelectedItems());
    // Drag dropped handler:
    if (dragboard.hasString() && dragboard.getString().equals("players")) {
         teamListView.getItems().addAll(draggedPlayers.get());
         draggedPlayers.set(null);

Maybe you are looking for

  • IPad 2 to iOS 5.0.1 now no Apps will start

    I just updated my mothers iPad 2 to iOS 5.0.1. Now when she trys to run any of her games the screen will flash and nothing will happen. So of the base Apps work, but anything that was downloaded from the App store will not run. Is there any fix for t

  • How do you take off the front of the 5200?

    lawlers ive got all sand in my phone and its jammed all my buttons and i need to get it out. Does anyone know how to take off the front of the 5200?

  • Urgent - STO Outbound delivery

    Hi friends, Can anybody tell me in outbound delivery for STPO why the system is allowing to post GI more than STPO quantity ? is their setting customization.I have lots of STPO having GI  quantity in outbound delivery greater than STPO. Regards, Sach

  • Finding center in black part of greyscale image

    Hi all, Basically what I want to do is find the center of a black part of a gray scale image. I'm having a bit of a problem using built-in LV functions, because the part of the image is somewhat spherical but not completely. What I'm doing is imaging

  • Not mutually convertible

    Hello experts, When I import the following paragraph of code from non-unicode system to unicode system, I met a problem related to 'not mutually convertible'.      L_T_TEST[] = T_INDX[].       LOOP AT L_T_TEST ASSIGNING <F_TEST>.         <F_TEST>-ZUN