@Override public void dragGestureRecognized(DragGestureEvent evt){
  DragEntry dragEntry=kseFrame.dragSelectedEntry();
  if (dragEntry == null) {
    return;
  }
  ImageIcon icon=dragEntry.getImage();
  Toolkit toolkit=Toolkit.getDefaultToolkit();
  Dimension dim=toolkit.getBestCursorSize(icon.getIconWidth(),icon.getIconHeight());
  BufferedImage buffImage=new BufferedImage(dim.width,dim.height,BufferedImage.TYPE_INT_ARGB_PRE);
  icon.paintIcon(evt.getComponent(),buffImage.getGraphics(),0,0);
  cursor=toolkit.createCustomCursor(buffImage,new Point(0,0),"keystore-entry");
  evt.startDrag(cursor,new KeyStoreEntryTransferable(dragEntry),this);
}

@ Override public void dragGestureRecognized ( DragGestureEvent evt ) { DragEntry dragEntry = kseFrame . dragSelectedEntry ( ) ; if ( dragEntry == null ) { return ; } ImageIcon icon = dragEntry . getImage ( ) ; Toolkit toolkit = Toolkit . getDefaultToolkit ( ) ; Dimension dim = toolkit . getBestCursorSize ( icon . getIconWidth ( ) , icon . getIconHeight ( ) ) ; BufferedImage buffImage = new BufferedImage ( dim . width , dim . height , BufferedImage . TYPE_INT_ARGB_PRE ) ; icon . paintIcon ( evt . getComponent ( ) , buffImage . getGraphics ( ) , 0 , 0 ) ; cursor = toolkit . createCustomCursor ( buffImage , new Point ( 0 , 0 ) , "keystore-entry" ) ; evt . startDrag ( cursor , new KeyStoreEntryTransferable ( dragEntry ) , this ) ; }
drag gesture recognized . start the drag off if valid .
