public static void main(String[] args){

             try
            {
                 JFrame.setDefaultLookAndFeelDecorated(true);
            UIManager.setLookAndFeel(new SubstanceMagmaLookAndFeel());
//            SubstanceLookAndFeel.setSkin(new EmeraldDuskSkin());
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }


//            Servidor s = new Servidor();
//            s.start();

             f = new VentanaPrincipal();

            int i=0;
        do
        {
          h = new hilosEjecucion(f);
          h.start();
        try {
            h.recibirMensajesServidor();
        } catch ( IOException ex) {
            System.out.println("streem null no puede seguir enviando datos main");
            h.stop();
            h = null;
        }
        }
        while(i==0);

           }