public void init () {
	 
      Container contentPane = getContentPane();
      ballBall=getAudioClip(getCodeBase(),"ballBall.wav");
      MyWorld world = new MyWorld(ballBall,true);
      double plotWindowTime = 30;
      MyWorldView  worldView = new MyWorldView(world);
      JPanel fondo = new JPanel();
      world.Grafica(fondo,plotWindowTime);
      JSplitPane panelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,worldView,fondo);
      panelPrincipal.setDividerLocation(900);
      panelPrincipal.setOneTouchExpandable(true);
      panelPrincipal.setDividerSize(10); //es la barrita de separacion
      panelPrincipal.setPreferredSize(new Dimension(1400, 500));
      add(panelPrincipal);
      fondo.setVisible(true);
      world.setView(worldView);      
      
      
      setContentPane ( contentPane ); //de donde sale??

 
      LabMenuListener menuListener = new LabMenuListener(world,this);
      setJMenuBar(createLabMenuBar(menuListener));
      
      String v = getParameter("fixedHookNum");
  
      int fixed_num= Integer.parseInt(v);
      Fixedhook_values = new double[fixed_num];
      int i;
      for (i = 0; i < fixed_num; i++)
      {  
     	 Fixedhook_values[i] = Double.parseDouble(getParameter("fixedHook." + (i + 1)));     	 
      }

      v = getParameter("ballNum");
      if (v == null) return;
      ball_num = Integer.parseInt(v);
      ball_values = new double[ball_num][4];
      int j = 0;
      for (i = 0; i < ball_num; i++)
      {  
    	 
     	 for (String retval: getParameter("ball." + (i + 1)).split(";", 4)){
     		 ball_values[i][j] = Double.parseDouble(retval);
     		 j++;
           }
     	 j=0;
      }
      //oscilador
      v = getParameter("oscillatorNum");
      if (v == null) return;
      osc_num = Integer.parseInt(v);
      oscillator_values = new double[osc_num][3];
      j=0;
      for (i = 0; i < osc_num; i++)
      {  
     	 for (String retval: getParameter("oscillator." + (i + 1)).split(";", 3)){
     		 oscillator_values[i][j] = Double.parseDouble(retval);
     		 j++;
           }
      }
      

      //oscilador guardado ok
      
      //*****************hasta aqui el oscilador
      //delta time
      v = getParameter("deltatime");
      if (v == null) return;
      deltatime = Double.parseDouble(v);
      //refreshtime
      v = getParameter("refreshtime");
      if (v == null) return;
      refreshtime = Double.parseDouble(v);
      
  }