public void load(String fileName){
			try{
				Scanner input = new Scanner(new File(fileName));
				shapeList.clear();
				selindex = -1;
				int count = Integer.parseInt(input.nextLine());
				while(input.hasNext()){
					String line = input.nextLine();
					String [] params = line.split(":");
					int x = Integer.parseInt(params[1]);
					int y = Integer.parseInt(params[2]);
					int wid = Integer.parseInt(params[3]);
					int height = Integer.parseInt(params[4]);
					String text = null;
					if(params.length>5)
						text = params[5];
					if(text == null)
						text = "";
					TextBox t = null;
					if(params[0].compareTo("TextRectangle")==0){
						t = new TextRectangle(x,y,wid,height);
					}else if(params[0].compareTo("TextEllipse")==0){
						t = new TextEllipse(x,y,wid,height);
					}else if(params[0].compareTo("TextRoundRect")==0){
						t = new TextRoundRect(x,y,wid,height);
					}
					if(t!=null){
						t.setText(text);
						shapeList.add(t);
					}
				}
			}catch(Exception ex){
				ex.printStackTrace();
			}
			repaint();
		}