private void formMouseClicked(java.awt.event.MouseEvent evt)//GEN-FIRST:event_formMouseClicked
    {//GEN-HEADEREND:event_formMouseClicked
        if (evt.getButton() == MouseEvent.BUTTON1)
        {
            for (DrawComponets dc : components)
            {
                if (dc instanceof DCConector && ((DCConector) dc).isClicked(evt.getPoint()))
                {
                    ((DCConector) dc).togleSelected();
                    repaint();
                } else if (dc instanceof DCConector)
                {
                    ((DCConector) dc).setSelected(false);
                }
            }
        } else if (evt.getButton() == MouseEvent.BUTTON3)
        {
            dc_selected = null;
        }
    }//GEN-LAST:event_formMouseClicked