public PlotPoints( )
    {
        BoneRecs = new Vector();
        xDim = 0.0;
        yDim = 0.0;
        xSize = 0;
        ySize = 0;
        zoom = 0.0;
        detail = 0.0;
        xt = 0;
        yt = 0;
        xt2 = 0;
        yt2 = 0;
        xp = 0;
        yp = 0;
        xmin = 961.478445;
        ymin = 974.766754;
        
        addMouseListener( new MouseAdapter()
        {
            public void mousePressed( MouseEvent evt )
            {
                xp = evt.getX();
                yp = evt.getY();
                System.out.println(xp+", "+yp);
                
                Double xtemp = 0.0;
                Double ytemp = 0.0;
                boolean check = false;
                for (int i=1; i<BoneRecs.size(); i++)
                {
                     // get vector of (x,y) coordinates
                    BoneRec bone = (BoneRec)BoneRecs.elementAt(i);
                    Vector v = bone.getPoints();
                    check = false;
                    for (int j=0; j<v.size();j++)
                    {
                        if (j != 0)
                        {
                            Vector f = (Vector)v.get(j);
                            //System.out.println(f.size());

                            for (int k=0; k<f.size(); k+=2)
                            {
                                xtemp = (Double)f.get(k);
                                ytemp = (Double)f.get(k+1);
                                xtemp = (xtemp - xmin) *50;
                                ytemp = (ytemp - ymin) * 50;
                            
                                if ((ytemp > evt.getY()) != (((Double)f.get(f.size()-1)-ymin)*50> evt.getY()))
                                    if (evt.getX() < (((Double)f.get(f.size()-2)-xmin)*50- xtemp) * 
                                            (evt.getY() - ytemp) / (((Double)f.get(f.size()-1)-ymin)*50 - ytemp) + xtemp)
                                    {
                                        check = !check;
                                    }
                            }
                        }
                    }
                    if (check==true)
                    {
                        info infoPane = new info (bone);

                        infoPane.setVisible(true);
                        check = false;
                        return;
                    }
                }
            }

            public void mouseDragged( MouseEvent evt )
            {   
                

            }
        } );

        addMouseMotionListener( this );
    }