private void importShapes(){
      //Get the import file name using FileDialog
      FileDialog fd=new FileDialog(dWhiteboardFrame,"Open",FileDialog.LOAD);
      fd.setModal(true);
      fd.show();
      String fileName=null;
      if(fd.getDirectory()==null && fd.getFile()==null) return;

      fileName=fd.getDirectory()+fd.getFile();
      Component [] shapes=null;
      ObjectReader reader=null;
      try{
          reader=ObjectReader.openFileForReading(fileName);
          shapes=(Component[]) reader.readObject();
      }catch(NullPointerException nPE){
          String title="Warning",
                   message="Can not open file for reading!";
          boolean isModal=true;
          new MyMessageBox(dWhiteboardFrame,title,message,isModal);
          return;     
      }      
      
     
      try{
           Shape s=null;
            for(int i=0;i<shapes.length;i++){
              s=(Shape) shapes[i];
              s.addMouseListener(this);
              s.addMouseMotionListener(this);
              dShapeContainer.add(s);
              dShapeContainer.repaint();
            }
      }catch(NullPointerException eNP){}
      finally{
              reader.close();
              dMenuItemSaveAs.setEnabled(true);
      }

  }