private MouseEvent createMouseEvent(String type,boolean shiftKey)
{
Document doc = itsNatDoc.getDocument();
MouseEvent event = (MouseEvent)((DocumentEvent)doc).createEvent("MouseEvents");
AbstractView view = ((DocumentView)doc).getDefaultView();
event.initMouseEvent(type,true,true,view,0,
0,0,0,0,false,false,shiftKey,false,(short)0/*left button*/,null);
return event;
}