Pagina html

1 resposta
D

como faço para chamar uma página html apartir de uma applet qu extende JApplet??

1 Resposta

M

vem se isso te ajuda.

URL url;
String location = "file:/C:/pasta1/pasta2/Arquivo.Html";
try {
      url = new URL(location);
      AppletContext browser = getAppletContext();
      browser.showDocument(url);
      }
      catch (MalformedURLException ee) {
          ee.printStackTrace();
      }
}
Criado 21 de outubro de 2002
Ultima resposta 25 de out. de 2002
Respostas 1
Participantes 2