Example #1
0
 public String htmlParaResolucao(String resp, Formulario form, ListaGerada listaGerada)
     throws Exception {
   String str = "<B>" + this.getEnunciado() + "</B><BR>";
   if (resp == null) {
     str += form.textArea("quest" + this.getCod(), "", 3, 60);
   } else {
     str += form.textArea("quest" + this.getCod(), resp, 3, 60);
   }
   return str;
 }
Example #2
0
  public static String htmlFormCadastroNovaQuestao(Formulario form) throws Exception {

    String str = "<table class=AreaConteudoFormularioFundo border=0 cellpadding=0 cellspacing=0>";
    str +=
        "<TR valign=top><TD><span class=AreaConteudoFormularioTexto>Resposta Correta: &nbsp; </span></TD>";
    str += "<TD>" + form.textArea("respostaCorreta", "", 4, 45) + "</TD></TR></TABLE>";
    return str;
  }
  public static void main(String[] args) {
    /*
     * 11. Dentro do main declare uma variável formulario inicializando-a com uma
     *     instância de Formulario, tornando-o visível logo em seguida.
     */
    Formulario formulario = new Formulario();
    formulario.setVisible(true);

    /*
     * 12. Execute a classe TestaMenuPrincipal e observe o resultado
     *     (Dica: marque cursos e o tipo de bolsa). Depois feche o formulario.
     */

    // 15. Execute novamente a classe TestaMenuPrincipal e observe o resultado. Depois feche o
    // formulario.

    // 20. Execute novamente a classe TestaMenuPrincipal e observe o resultado.
  }