question: public void moveItem ( Positionable p , int deltaX , int deltaY ) { if ( getFlag ( OPTION_POSITION , p . isPositionable ( ) ) ) { int xObj = getItemX ( p , deltaX ) ; int yObj = getItemY ( p , deltaY ) ; if ( xObj < 0 ) { xObj = 0 ; } if ( yObj < 0 ) { yObj = 0 ; } p . setLocation ( xObj , yObj ) ; p . repaint ( ) ; } }
target:  Relocate item. Note that items can not be moved past the left or top edges of the panel.