public void saveAsJpg(String fileName){
			BufferedImage img = new BufferedImage(drawPanel.getWidth(),drawPanel.getHeight(),BufferedImage.TYPE_INT_RGB);
			Graphics2D g = img.createGraphics();
			super.paintComponent(g);
			unSelect();
			for(TextBox t:shapeList){
				t.draw(g);
			}
			try{
				ImageIO.write(img, "JPG", new File(fileName));
			}catch(Exception ex){
				ex.printStackTrace();
			}
			repaint();
		}