private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed
       
        switch(jComboBox1.getSelectedIndex()){
            case 0: idioma = new Ingles();
                break;
            case 1: idioma = new Espanol();
                break;
            case 2: idioma = new Frances();
                break;
            case 3: idioma = new Aleman();
                break;
           
        }
        
        if(nombrePlayer1 != null && nombrePlayer2 != null)
        {
            muestraTabla1();
            jFrame1.setVisible(true);
        }
        
       if(g==null){
       
           Thread hilo=new Thread(new Runnable() 
           {

               @Override
               public void run() 
               {
                    JFrame frame = new JFrame("Juego de Tennis");
                    g = new JuegoGrap();
                    frame.add(g);
                    frame.setSize(400, 400);
                    frame.setLocation(1199, 450);
                    frame.setVisible(true);
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	
		while (true) 
                {
                       try 
                       {
                           g.move();
                           g.repaint();
                           Thread.sleep(7);
                       } catch (InterruptedException ex) 
                       {
                           Logger.getLogger(Principal.class.getName()).log(Level.SEVERE, null, ex);
                       }
		}
               }
           });
           hilo.start();
       }
	
       
    }//GEN-LAST:event_jComboBox1ActionPerformed