Open the Composition Editor for the BlackJackPlayerView visual part. Change the container's values for
dragDropSpec to allow a drag with a default operation of
XmMOVE. You should also allow a drop with a default operation of
XmMOVE. Add the
Card class to the list of acceptable classes. These settings allow cards to be dragged from a player's hand and dropped in a player's hand. Select
OK to accept the changes and then save the part.
Select the BlackJackGameView visual part and then

to test the part. Create two new players. You should be able to drag cards from the deck to each player's hand. Notice the target emphasis between the cards in the player's hand as you drag over them. This emphasis indicates where the drop will occur. You can drop a card so it is at the beginning of the list, somewhere in the middle of the list, or at the end of the list. You should also be able to drag cards from the players' hands to the Discard window.