public static void enumerate_serial_ports() throws PortInUseException, UnsupportedCommOperationException, IOException
    {
        //
        for (final String comm_port_list_element : Communication.enumeratedCommPortList())
        {
            //
            JMenuItem next_comm_port = new javax.swing.JMenuItem();
            //
            next_comm_port.setText(comm_port_list_element);
            //
            next_comm_port.addActionListener(new java.awt.event.ActionListener() 
            {                
                //Action which is performed when the user clicks a serial cionnection menu comm port selection
                @Override
                public void actionPerformed(java.awt.event.ActionEvent evt) 
                {
                    //Defines the name of the serial connection menu selected comm port.
                    selectedCommPort=comm_port_list_element;
                    //
                    transceiver_connection_lock = false;
                }
            });
            //
            serial_connection_menu.add(next_comm_port);
        }
    }