@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals("setImagePath"))
		{
			JFileChooser chooser = new JFileChooser();
			FileNameExtensionFilter filter1 = new FileNameExtensionFilter("Image files", "png", "jpeg", "jpg", "bmp");
		    chooser.addChoosableFileFilter(filter1);
		    chooser.setFileFilter(filter1);
			int outcome = chooser.showOpenDialog(frame);
			if (outcome == JFileChooser.APPROVE_OPTION)
			{
				try
				{
					//ImageIcon ii = new ImageIcon(chooser.getSelectedFile().getAbsolutePath());
					//hmf.imageLabel.setIcon(ii);
					property.path = chooser.getSelectedFile().getAbsolutePath();
					property.zoom = 1.0d;
					property.imageOffsetX = 0;
					property.imageOffsetY = 0;
					
					frame.reRenderCard();
					frame.hm.card.changed = true;
				}
				catch (Exception ex)
				{
					ex.printStackTrace();
				}
			}
		}
		
		if (e.getActionCommand().equals("setImageZoom"))
		{
			String s = JOptionPane.showInputDialog(frame, "Enter the Image Zoom", property.zoom);
			if (s == null) { s = "" + property.zoom; }
			if (s != null && s.isEmpty()) { s = "" + property.zoom; }
			try
			{
				property.zoom = Double.parseDouble(s);
			}
			catch (Exception ex)
			{
				JOptionPane.showMessageDialog(null, ex.getMessage());
			}
			frame.setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
			frame.reRenderCard();
			frame.hm.card.changed = true;
			frame.setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
		}
	}