public DragClicked(GraphPanel component){
  this.component=component;
}

public DragClicked ( GraphPanel component ) { this . component = component ; }
creates a new instance of the dragclicked listener
