private void boidCountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boidCountActionPerformed
       if (boidCount.isSelected()) {
                //boidCount.setSelected(false); 
                if (ptr != null)ptr.addMouseListener(mlcount);
            }
            else{
                if (ptr != null)ptr.removeMouseListener(mlcount);
            }
    }