private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox2ActionPerformed
        // TODO add your handling code here
       
      
        if(jComboBox2.getSelectedItem().toString()=="Conection..."){
            jLabel3.setVisible(false);
            jComboBox1.setVisible(false);
            jSeparator1.setVisible(false);
        } else if( jComboBox2.getSelectedItem().toString()=="Wifi"){
            try {
                jLabel3.setVisible(true);
                jLabel3.setText("IP: "+InetAddress.getLocalHost().getHostAddress().toString());
                jComboBox1.setVisible(true); 
                jSeparator1.setVisible(true);
                jComboBox2.setEnabled(false);
                jLabel5.setVisible(true);
                jLabel4.setVisible(false);
                Conection=true;
               
            } catch (UnknownHostException ex) {
                Logger.getLogger(MainHome.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else if (jComboBox2.getSelectedItem().toString()=="Bluetooth")
        {
            jLabel3.setVisible(true);
            jComboBox1.setVisible(false);
              jComboBox2.setEnabled(false);
              jSeparator1.setVisible(true);
              jLabel4.setVisible(true);
              jLabel5.setVisible(false);
              
              
              waitThread.start();
            try {
                Thread.sleep(500);
            } catch (InterruptedException ex) {
                Logger.getLogger(MainHome.class.getName()).log(Level.SEVERE, null, ex);
            }
               jLabel3.setText(Bluetooth());
        }
        
      
     
       
    }//GEN-LAST:event_jComboBox2ActionPerformed