import ReceptorEventos;
import java.awt.*;

public class DialogoCurso extends Frame
{
  public ReceptorEventos jefe;


  public DialogoCurso( String titulo, ReceptorEventos jefe )
  {
     super(titulo);
     this.jefe = jefe;
     creaControles();
  }

  public void creaControles() { }

  public void mostrar( Rectangle r, String[] args )
  {
     pack();
     Dimension ps = preferredSize();
     resize(ps.width+40,ps.height);
     move(r.x+(r.width-ps.width-40)/2,r.y+(r.height-ps.height)/2);
     show();
  }
}
