private void setMenuItems(){
      //Initially disable the Clear and Paste menue item
       MenuItem [] mi=dWhiteboardFrame.getAllMenuItems();
       for(int i=0; i<mi.length;i++){         
          String label=mi[i].getLabel();
          if(label.equals("Clear")){ 
              dMenuItemClear=mi[i];
          }
          else if(label.equals("Paste")){
              dMenuItemPaste=mi[i];
          }
          else if(label.equals("Cut")){
              dMenuItemCut=mi[i];
          }
          else if(label.equals("Copy")){
              dMenuItemCopy=mi[i];
          }
          else if(label.equals("Save As")){
              dMenuItemSaveAs=mi[i];
          }
       }
  }