gt:              chatsunedu snd = new chatsunedu(da, can, even);
context: /*
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  package pusher;
  
  import javax.swing.ImageIcon;
  import javax.swing.JOptionPane;
  
  /**
   *
   * @author mario
   */
  public class login extends javax.swing.JFrame {
      public String nombre;
      public String canal;
      public String evento;
  
      /**
       * Creates new form login
       */
      public login() {
          initComponents();
      }
  
      /**
       * This method is called from within the constructor to initialize the form.
       * WARNING: Do NOT modify this code. The content of this method is always
       * regenerated by the Form Editor.
       */
      @SuppressWarnings("unchecked")
      // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
      private void initComponents() {
  
          windowsUtil1 = new org.edisoncor.gui.util.WindowsUtil();
          tabbedSelector23 = new org.edisoncor.gui.tabbedPane.TabbedSelector2();
          panel1 = new org.edisoncor.gui.panel.Panel();
          jButton2 = new javax.swing.JButton();
          txtcanal = new javax.swing.JTextField();
          txtnombre = new javax.swing.JTextField();
          jLabel4 = new javax.swing.JLabel();
          jLabel5 = new javax.swing.JLabel();
          jLabel2 = new javax.swing.JLabel();
          panel2 = new org.edisoncor.gui.panel.Panel();
          jButton11 = new javax.swing.JButton();
          jButton12 = new javax.swing.JButton();
          jButton13 = new javax.swing.JButton();
          jButton14 = new javax.swing.JButton();
          jLabel3 = new javax.swing.JLabel();
  
          setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
          setIconImage(getIconImage());
          setIconImages(getIconImages());
          setResizable(false);
  
          tabbedSelector23.setBackground(new java.awt.Color(204, 204, 204));
          tabbedSelector23.setForeground(new java.awt.Color(102, 102, 102));
          tabbedSelector23.setColorBackGround(new java.awt.Color(255, 255, 255));
          tabbedSelector23.setColorDeBorde(new java.awt.Color(0, 255, 255));
          tabbedSelector23.setColorDeSegundoBorde(new java.awt.Color(255, 0, 0));
          tabbedSelector23.setListColor(new java.awt.Color(0, 0, 204));
  
          panel1.setForeground(new java.awt.Color(255, 255, 255));
          panel1.setColorPrimario(new java.awt.Color(255, 255, 255));
          panel1.setColorSecundario(new java.awt.Color(255, 255, 255));
  
          jButton2.setBackground(new java.awt.Color(255, 255, 255));
          jButton2.setForeground(new java.awt.Color(0, 102, 255));
          jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/PLUS.png"))); // NOI18N
          jButton2.setText("Entrar");
          jButton2.setBorder(null);
          jButton2.setBorderPainted(false);
          jButton2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
          jButton2.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  jButton2ActionPerformed(evt);
              }
          });
  
          txtcanal.setToolTipText("");
  
          jLabel4.setFont(new java.awt.Font("Yu Gothic Light", 0, 14)); // NOI18N
          jLabel4.setText("NOMBRE:");
  
          jLabel5.setFont(new java.awt.Font("Yu Gothic Light", 0, 14)); // NOI18N
          jLabel5.setText("CANAL:");
  
          jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/1497602219_InterfaceExpendet-10.png"))); // NOI18N
  
          javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);
          panel1.setLayout(panel1Layout);
          panel1Layout.setHorizontalGroup(
              panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(panel1Layout.createSequentialGroup()
                  .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                      .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addGroup(panel1Layout.createSequentialGroup()
                          .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(jLabel5))
                          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                          .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                              .addComponent(txtcanal)
                              .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE))))
                  .addGap(0, 18, Short.MAX_VALUE))
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()
                  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                  .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addGap(35, 35, 35))
          );
          panel1Layout.setVerticalGroup(
              panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                      .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addComponent(jLabel4))
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                      .addComponent(txtcanal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addComponent(jLabel5))
                  .addGap(35, 35, 35)
                  .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addContainerGap(39, Short.MAX_VALUE))
          );
  
          tabbedSelector23.addTab("CREAR MI CHAT", panel1);
  
          panel2.setForeground(new java.awt.Color(255, 255, 255));
          panel2.setColorPrimario(new java.awt.Color(255, 255, 255));
          panel2.setColorSecundario(new java.awt.Color(255, 255, 255));
  
          jButton11.setBackground(new java.awt.Color(255, 255, 255));
          jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/1497602785_016-facebook.png"))); // NOI18N
          jButton11.setText("APURIMAC");
          jButton11.setActionCommand("ABANCAY");
          jButton11.setBorder(null);
          jButton11.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
          jButton11.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  jButton11ActionPerformed(evt);
              }
          });
  
          jButton12.setBackground(new java.awt.Color(255, 255, 255));
          jButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/1497602785_016-facebook.png"))); // NOI18N
          jButton12.setText("         LIMA");
          jButton12.setBorder(null);
          jButton12.setBorderPainted(false);
          jButton12.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
          jButton12.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  jButton12ActionPerformed(evt);
              }
          });
  
          jButton13.setBackground(new java.awt.Color(255, 255, 255));
          jButton13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/1497602785_016-facebook.png"))); // NOI18N
          jButton13.setText("     CUSCO");
          jButton13.setBorder(null);
          jButton13.setBorderPainted(false);
          jButton13.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
          jButton13.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  jButton13ActionPerformed(evt);
              }
          });
  
          jButton14.setBackground(new java.awt.Color(255, 255, 255));
          jButton14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/1497602785_016-facebook.png"))); // NOI18N
          jButton14.setText("AREQUIPA");
          jButton14.setBorder(null);
          jButton14.setBorderPainted(false);
          jButton14.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
          jButton14.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  jButton14ActionPerformed(evt);
              }
          });
  
          jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/1497602219_InterfaceExpendet-10.png"))); // NOI18N
  
          javax.swing.GroupLayout panel2Layout = new javax.swing.GroupLayout(panel2);
          panel2.setLayout(panel2Layout);
          panel2Layout.setHorizontalGroup(
              panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(panel2Layout.createSequentialGroup()
                  .addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                      .addGroup(panel2Layout.createSequentialGroup()
                          .addGap(49, 49, 49)
                          .addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)))
                      .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel2Layout.createSequentialGroup()
                          .addContainerGap()
                          .addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                              .addComponent(jButton14, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                              .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))))
                  .addContainerGap(55, Short.MAX_VALUE))
          );
          panel2Layout.setVerticalGroup(
              panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(panel2Layout.createSequentialGroup()
                  .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                  .addComponent(jButton14, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE)
                  .addContainerGap())
          );
  
          jButton11.getAccessibleContext().setAccessibleName("ABANCAY");
          jButton12.getAccessibleContext().setAccessibleName("LIMA");
  
          tabbedSelector23.addTab("CHAT ALTERNATIVO", panel2);
  
          javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
          getContentPane().setLayout(layout);
          layout.setHorizontalGroup(
              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addComponent(tabbedSelector23, javax.swing.GroupLayout.PREFERRED_SIZE, 385, javax.swing.GroupLayout.PREFERRED_SIZE)
          );
          layout.setVerticalGroup(
              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addComponent(tabbedSelector23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
          );
  
          tabbedSelector23.getAccessibleContext().setAccessibleName("CANALES");
  
          pack();
      }// </editor-fold>//GEN-END:initComponents
  
      private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
          // TODO add your handling code here:
          nombre=txtnombre.getText().toLowerCase();
          canal=txtcanal.getText().toLowerCase();
          evento = canal;
          if(" ".equals(nombre)||"".equals(canal)||"".equals(evento))
          {
              JOptionPane.showMessageDialog(null, "FALTAN DATOS");
          } else {
              chatsunedu snd = new chatsunedu(nombre, canal, evento);
              snd.setVisible(true);
          }
          
          
      }//GEN-LAST:event_jButton2ActionPerformed
  
      private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
          String da;
          da =  JOptionPane.showInputDialog(this, "Escribe tu nombre:");
          
          if("".equals(da)) {
              
              JOptionPane.showMessageDialog(this, "su  nombre es  necesario!!");
              
          } else {
              
               String can="apurimac";
               String even="a";
               chatsunedu snd = new chatsunedu(da, can, even);
               snd.setVisible(true);
          }
         
      }//GEN-LAST:event_jButton11ActionPerformed
  
      private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
          // TODO add your handling code here:
          String da;
          da =  JOptionPane.showInputDialog(this, "Escribe tu nombre:");
          
          if("".equals(da)) {
              
              JOptionPane.showMessageDialog(this, "su  nombre es  necesario!!");
              
          } else {
              
               String can="lima";
               String even="l";
               chatsunedu snd = new chatsunedu(da, can, even);
               snd.setVisible(true);
          }
      }//GEN-LAST:event_jButton12ActionPerformed
  
      private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
          // TODO add your handling code here:
          String da;
          da =  JOptionPane.showInputDialog(this, "Escribe tu nombre:");
          
          if("".equals(da)) {
              
              JOptionPane.showMessageDialog(this, "su  nombre es  necesario!!");
              
          } else {
              
               String can="cusco";
               String even="c";
  