public void mouseClicked(MouseEvent e, View a_view)
 {
     int button = e.getButton();
     
     if(button == MouseEvent.BUTTON1)
     {
         if(clickCount == 0)
            {
                clickCount++;
                x1 = e.getX();
                y1 = e.getY();
                JOptionPane.showMessageDialog(a_view,"First point selected, please select second point on scale.");
//                System.out.println(e.getPoint());
//                System.out.println(clickCount);
            }
            else if(clickCount == 1)
            {
                clickCount++;
                x2 = e.getX();
                y2 = e.getY(); 
//                System.out.println(e.getPoint());
                
                if((x1 == x2) && (y1 == y2))
                {
                    JOptionPane.showMessageDialog(a_view,"Same points selected, please re-calibrate.");
                    x1 = 0;
                    y1 = 0;
                    x2 = 0;
                    y2 = 0;
                    clickCount = 0;
                    
                }
                else
                {
                    JOptionPane.showMessageDialog(a_view,"Second point selected, please enter scale value and finish calibration.");
                }
                
                

            }
            else if((clickCount >= 2) && (a_view.getCalibrationPanel().getDoneCalButton().isEnabled()))
            {
                JOptionPane.showMessageDialog(a_view,"calibration has already been completed, please click 'Done Calibration' or select re-calibrate from the menu.");
            }
     }
            
            
     
     
 }