public void usarKinect(){

        if (JOptionPane.showConfirmDialog(null, "\nUsar midia virtual?\n","Iniciando Kinect",JOptionPane.YES_NO_OPTION) == 0 ){
            
            JOptionPane pane = new JOptionPane("\nAtivando Kinect...\n", JOptionPane.DEFAULT_OPTION);
            
            final JDialog dialog = pane.createDialog(null, "Iniciando Kinect");  
            dialog.setModal(true);
            //timer. Insere um tempo de vida para o JOptionPane
            Timer timer = new Timer(10 * 100, new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent ev) {  
                    dialog.dispose();
                }            
            });

            timer.setRepeats(true);
            timer.start();
            dialog.show();
            timer.stop();
            
            if(kinect == null)
                kinect = new Kinect();
            
            kinect.setX(new Random().nextDouble());
            kinect.setY(new Random().nextDouble());
            kinect.setZ(new Random().nextDouble());

            kinect.usar(this);
            
            rodaMidiaVirtual();
            
            if(kinect.isAtivo())
                kinect.setAtivo(false);
        }
        else{
            
            JOptionPane pane = new JOptionPane("\nAtivando Kinect...\n", JOptionPane.DEFAULT_OPTION);
            final JDialog dialog = pane.createDialog(null, "Iniciando Kinect");  
            dialog.setModal(true);
            //timer. Insere um tempo de vida para o JOptionPane
            Timer timer = new Timer(10 * 100, new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent ev) {  
                    dialog.dispose();
                }            
            });

            timer.setRepeats(true);
            timer.start();
            dialog.show();
            timer.stop();
            
            String aux = JOptionPane.showInputDialog(null, "\nInforme qual jogo deve ser rodado com Kinect\n","Kinect",JOptionPane.DEFAULT_OPTION);
            
            if(!aux.equals("")){                
                
                if(kinect == null)
                    kinect = new Kinect();
            
                kinect.setX(new Random().nextDouble());
                kinect.setY(new Random().nextDouble());
                kinect.setZ(new Random().nextDouble());

                kinect.usar(this);
                
                jogoRodando = aux;
                rodaMidiaFisica();

                if(kinect.isAtivo())
                    kinect.setAtivo(false);
            }
        }
        
    }